Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix endless loop #67

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pyrpm/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ def update_impl(self, spec_obj: "Spec", context: Dict[str, Any], match_obj: re.M
]:
# Remove comments on same line
value = value.split("#", 2)[0].rstrip()
# Macros are valid in requirements
value = replace_macros(value, spec=spec_obj)

# It's also legal to do:
# Requires: a b c
Expand Down
11 changes: 2 additions & 9 deletions scripts/fedora_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@
from pyrpm.spec import Spec


# Spec files to skip because of known issues. All of the following end up in an
# endless loop
skipfiles = (
"cairo-dock.spec",
"ghc",
"libreoffice.spec",
"python-pyghmi.spec",
"xscreensaver.spec",
)
# Spec files to skip because of known issues.
skipfiles = ()


def skip(filename: str) -> bool:
Expand Down