Skip to content

Commit

Permalink
Only use nodigests/nosignatures where available
Browse files Browse the repository at this point in the history
These have been removed in rpm5.org (but not in rpm.org).
See http://rpm5.org/cvs/chngview?cn=16659 for the removal.
  • Loading branch information
afb committed Mar 9, 2014
1 parent ce926dd commit e005aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smart/plugins/yumchannelsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def _getreleasever():

rpmroot = sysconf.get("rpm-root", "/")
ts = rpmUtils.transaction.initReadOnlyTransaction(root=rpmroot)
#ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
ts.pushVSFlags(~(rpm._RPMVSF_NODIGESTS))
if hasattr(rpm, '_RPMVSF_NOSIGNATURES') and hasattr(rpm, '_RPMVSF_NODIGESTS'):
ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
releasever = None
# HACK: we're hard-coding the most used distros, will add more if needed
idx = ts.dbMatch('provides', 'fedora-release')
Expand Down

0 comments on commit e005aa9

Please sign in to comment.