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

treat 'epoch' as '0' when it does not exist or is null #671

Merged
merged 1 commit into from Apr 9, 2015

Conversation

beav
Copy link
Contributor

@beav beav commented Apr 9, 2015

Some updateinfo.xml metadata does not contain the epoch field in package
records. In these cases, Pulp will not be able to find the appropriate RPM.

In these cases, we can assume that the epoch should be '0'. This allows Pulp to
find the RPM when applying packages to a system.

fixes #833

Some updateinfo.xml metadata does not contain the `epoch` field in package
records. In these cases, Pulp will not be able to find the appropriate RPM.

In these cases, we can assume that the epoch should be '0'. This allows Pulp to
find the RPM when applying packages to a system.

fixes pulp#833
@beav beav added the Bugfix label Apr 9, 2015
@mhrivnak mhrivnak self-assigned this Apr 9, 2015
self.assertTrue(rpms[1]["name"] in ['emoticons', 'patb'])
for r in rpms:
self.assertTrue('epoch' in r)
self.assertTrue(r['epoch'] == '0')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong with this, but you could use assertEqual

@mhrivnak mhrivnak added the LGTM label Apr 9, 2015
@mhrivnak mhrivnak assigned beav and unassigned mhrivnak Apr 9, 2015
@beav
Copy link
Contributor Author

beav commented Apr 9, 2015

@mhrivnak thanks for the fast review

beav added a commit that referenced this pull request Apr 9, 2015
treat 'epoch' as '0' when it does not exist or is null
@beav beav merged commit 531970f into pulp:2.6-testing Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants