[yum-commits] yum-builddep.py
skvidal at osuosl.org
skvidal at osuosl.org
Thu May 28 18:44:11 UTC 2009
yum-builddep.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 62423aea473c580e9d2448215863a689c096660c
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Thu May 28 14:40:49 2009 -0400
when --nogpgcheck is passed - make sure we turn off gpg checking on our read ts
not just from repos
diff --git a/yum-builddep.py b/yum-builddep.py
index 817cf33..b3ba98d 100755
--- a/yum-builddep.py
+++ b/yum-builddep.py
@@ -24,7 +24,7 @@ from utils import YumUtilBase
import logging
import rpmUtils
-
+import rpm
class YumBuildDep(YumUtilBase):
NAME = 'yum-builddep'
@@ -49,6 +49,11 @@ class YumBuildDep(YumUtilBase):
self.logger.error("Cannot handle specific enablerepo/disablerepo options.")
sys.exit(50)
+ # turn of our local gpg checking for opening the srpm if it is turned
+ # off for repos :)
+ if opts.nogpgcheck:
+ self.ts.pushVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS))
+
# Check if there is anything to do.
if len(self.cmds) < 1:
print self.optparser.format_help()
More information about the Yum-commits
mailing list