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

2015.8.7 pkg.installed fails using version if epoch is set. #31517

Closed
stepherg opened this issue Feb 26, 2016 · 1 comment
Closed

2015.8.7 pkg.installed fails using version if epoch is set. #31517

stepherg opened this issue Feb 26, 2016 · 1 comment
Labels
Duplicate Duplicate of another issue or PR - will be closed
Milestone

Comments

@stepherg
Copy link

Trying to move from 2015.5.5-1 to 2015.8.7-1, I found the following issue:

Installing RPMs by version that have an 'epoch' set (like sensu) report install failure apparently because the version returned by parse_pkginfo() is prepending the epoch to the version that's used by _verify_install(). Although the installation actually succeeds, it causes problems with other states that have the install as a dependency.

I edited my local version of rpm.py to remove the addition of the 'epoch' field to the version and the installation worked as expected. Would it be safe to do this as a fix or will that create other issues? Is this a known problem in this version?

Thank you.

Failure case:


      ID: sensu.pkg
Function: pkg.installed
    Name: sensu
  Result: False
 Comment: The following packages failed to install/update: sensu=0.22.0-1
 Started: 16:51:34.022065
Duration: 5048.761 ms
 Changes:   
          ----------
          sensu:
              ----------
              new:
                  1:0.22.0-1
              old:
@jfindlay jfindlay added the Duplicate Duplicate of another issue or PR - will be closed label Feb 26, 2016
@jfindlay jfindlay added this to the Approved milestone Feb 26, 2016
@jfindlay
Copy link
Contributor

@stepherg, thanks for reporting. This is a duplicate of #31014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate of another issue or PR - will be closed
Projects
None yet
Development

No branches or pull requests

2 participants