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
Introduced a dependency mapping for != dependency #221
Introduced a dependency mapping for != dependency #221
Conversation
There exist gems in the wild that have a dependency != Example is sprocket gem (at least version 2.1.3). Use a mapping that prevents dpkg to choke on != and appended it to the conflicts.
@@ -261,6 +261,13 @@ def fix_dependency(dep) | |||
nextversion[l-1] = 0 | |||
nextversion = nextversion.join(".") | |||
return ["#{name} (>= #{version})", "#{name} (<< #{nextversion})"] | |||
elsif (m = dep.match(/(\S+)\s+\(!= (.+)\)/)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really what is meant by !=?
As an alternate, what if instead of adding a dependency, the '!=' dependency adds a 'Conflicts' entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dammit, uploaded the wrong patch. Stay tuned, will upload the correct one after dinner...
Added correct patch now.
elsif (m = dep.match(/(\S+)\s+\(!= (.+)\)/)) | ||
# Append this to conflicts | ||
self.conflicts += [dep.gsub(/!=/,"=")] | ||
return [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
grr, wrong click ;) |
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
There exist gems in the wild that have a dependency !=
Example is sprocket gem (at least version 2.1.3). Use a mapping
that prevents dpkg to choke on != and appended it to the conflicts.