]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - modules/sign.py
- use rpm.RPMVSF_NODSAHEADER where we had NOSIGNATURES in rpm4
[projects/pld-ftp-admin.git] / modules / sign.py
index 2a23e9c1678d95edbafe3f77eae2241f8c468031..377ee5109635c647ae45a3ae7e488e9c3147af9c 100644 (file)
@@ -27,7 +27,7 @@ def is_signed(rpm_file):
         return None
 
     ts = rpm.ts()
-    ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)
+    ts.setVSFlags(rpm.RPMVSF_NODSAHEADER)
     fdno = os.open(rpm_file, os.O_RDONLY)
     hdr = ts.hdrFromFdno(fdno)
     os.close(fdno)
@@ -55,3 +55,5 @@ def signpkgs(files, password):
     rc = child.exitstatus
     if rc != 0:
         raise OSError, 'package signing failed'
+    for rpm in files:
+        os.chmod(rpm, 0644)
This page took 0.027326 seconds and 4 git commands to generate.