tinfoil.prepare(config_only=False, quiet=2)
r = """
- LICENSE="CLOSED"
- SRC_URI="http://example.com/tarball.zip"
+ LICENSE = "CLOSED"
+ SRC_URI = "http://example.com/tarball.zip"
"""
f = self.write_recipe(textwrap.dedent(r), tempdir)
d = tinfoil.parse_recipe_file(f)
# Verify that the downloadfilename overrides the URI
r = """
- LICENSE="CLOSED"
- SRC_URI="https://example.com/tarball;downloadfilename=something.zip"
+ LICENSE = "CLOSED"
+ SRC_URI = "https://example.com/tarball;downloadfilename=something.zip"
"""
f = self.write_recipe(textwrap.dedent(r), tempdir)
d = tinfoil.parse_recipe_file(f)
self.assertIn("unzip-native", d.getVarFlag("do_unpack", "depends") or "")
r = """
- LICENSE="CLOSED"
- SRC_URI="ftp://example.com/tarball.lz"
+ LICENSE = "CLOSED"
+ SRC_URI = "ftp://example.com/tarball.lz"
"""
f = self.write_recipe(textwrap.dedent(r), tempdir)
d = tinfoil.parse_recipe_file(f)
self.assertIn("lzip-native", d.getVarFlag("do_unpack", "depends"))
r = """
- LICENSE="CLOSED"
- SRC_URI="git://example.com/repo;branch=master;rev=ffffffffffffffffffffffffffffffffffffffff"
+ LICENSE = "CLOSED"
+ SRC_URI = "git://example.com/repo;branch=master;rev=ffffffffffffffffffffffffffffffffffffffff"
"""
f = self.write_recipe(textwrap.dedent(r), tempdir)
d = tinfoil.parse_recipe_file(f)