Replace '--checksig --nogpg' with '-K --nosignature'
authorZhang Qiang <qiang.z.zhang@intel.com>
Fri, 30 Sep 2011 06:13:58 +0000 (14:13 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Fri, 30 Sep 2011 06:13:58 +0000 (14:13 +0800)
--nogpg is obsoleted by --nosignature for a long time, and '--nogpg'
is removed since rpm 4.9.

mic/utils/rpmmisc.py

index f14827d33597a5d24899805b693d4e22398254df..f1448e9e8d690eb920b5fef4688878fed4d4b5a0 100644 (file)
@@ -366,7 +366,7 @@ def getBaseArch():
         return basearch
 
 def checkRpmIntegrity(bin_rpm, package):
-    return runner.quiet([bin_rpm, "--checksig", "--nogpg", package])
+    return runner.quiet([bin_rpm, "-K", "--nosignature", package])
 
 def checkSig(ts, package):
     """ Takes a transaction set and a package, check it's sigs,