Skip to content

Commit 5d46447

Browse files
gabibeyermatthewrsj
authored andcommitted
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 <[email protected]>
1 parent 5474ed3 commit 5d46447

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autospec/autospec.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def main():
213213
infile_dict = infile_handler.infile_reader(args.infile, name)
214214
if not url:
215215
url = infile_dict.get('URL')
216-
print("Tar url from infile: {}".format(url))
217216
if infile_dict.get("LICENSE"):
218217
license.add_license(infile_dict.get("LICENSE"))
219218

@@ -227,13 +226,13 @@ def main():
227226
"even number of arguments"))
228227

229228
if args.prep_only:
230-
package(args, url, name, archives, "./workingdir")
229+
package(args, url, name, archives, "./workingdir", infile_dict)
231230
else:
232231
with tempfile.TemporaryDirectory() as workingdir:
233-
package(args, url, name, archives, workingdir)
232+
package(args, url, name, archives, workingdir, infile_dict)
234233

235234

236-
def package(args, url, name, archives, workingdir):
235+
def package(args, url, name, archives, workingdir, infile_dict):
237236
check_requirements(args.git)
238237
build.setup_workingdir(workingdir)
239238

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pycurl>=7.43.0
33
toml>=0.9.0
44
mock>=2.0.0
55
coverage>=4.4.1
6+
requests>=2.18.4

0 commit comments

Comments
 (0)