Skip to content

Commit

Permalink
Don't handle commented out dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
frantisekz committed Aug 23, 2016
1 parent e2b4583 commit d4f47ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fur
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ def fur_dependencies(name):
spec_file = open("/home/" + user + "/.fur/" + name + "/" + name + ".spec", "r")
print("Solving dependencies from Fedora User Repository...")
for spec_line in spec_file:
if "BuildRequires" in spec_line:
if "#BuildRequires" in spec_line:
# Skip commented out BuildRequires
continue
elif "#Requires" in spec_line:
# Skip commented out Requires
continue
elif "BuildRequires" in spec_line:
spec_line = re.sub(r"BuildRequires: ", "", spec_line)
spec_line = spec_line.rstrip()
fur_build_requires_array.append(spec_line)
Expand Down

0 comments on commit d4f47ed

Please sign in to comment.