Add request requirement and pass infile dict

To use the infile_dict after the creation of the specfile, it
must be passed into the package function.

Also the requirement request for python is needed.

Signed-off-by: Gabi Beyer <gabib@live.com>
This commit is contained in:
Gabi Beyer
2017-11-30 09:07:19 -08:00
committed by Matthew Johnson
parent 5474ed39d1
commit 5d4644720c
2 changed files with 4 additions and 4 deletions
+3 -4
View File
@@ -213,7 +213,6 @@ def main():
infile_dict = infile_handler.infile_reader(args.infile, name)
if not url:
url = infile_dict.get('URL')
print("Tar url from infile: {}".format(url))
if infile_dict.get("LICENSE"):
license.add_license(infile_dict.get("LICENSE"))
@@ -227,13 +226,13 @@ def main():
"even number of arguments"))
if args.prep_only:
package(args, url, name, archives, "./workingdir")
package(args, url, name, archives, "./workingdir", infile_dict)
else:
with tempfile.TemporaryDirectory() as workingdir:
package(args, url, name, archives, workingdir)
package(args, url, name, archives, workingdir, infile_dict)
def package(args, url, name, archives, workingdir):
def package(args, url, name, archives, workingdir, infile_dict):
check_requirements(args.git)
build.setup_workingdir(workingdir)
+1
View File
@@ -3,3 +3,4 @@ pycurl>=7.43.0
toml>=0.9.0
mock>=2.0.0
coverage>=4.4.1
requests>=2.18.4