mirror of
https://github.com/clearlinux/autospec.git
synced 2026-11-25 23:23:59 +00:00
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:
committed by
Matthew Johnson
parent
5474ed39d1
commit
5d4644720c
@@ -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)
|
||||
|
||||
|
||||
@@ -3,3 +3,4 @@ pycurl>=7.43.0
|
||||
toml>=0.9.0
|
||||
mock>=2.0.0
|
||||
coverage>=4.4.1
|
||||
requests>=2.18.4
|
||||
|
||||
Reference in New Issue
Block a user