Merge release-0.28.17 from 'tools/mic'
[platform/upstream/mic.git] / mic / utils / rpmmisc.py
index eb481f8..a656e40 100644 (file)
@@ -154,7 +154,7 @@ class RPMInstallCallback:
 
         elif what == rpm.RPMCALLBACK_INST_PROGRESS:
             if h is not None:
-                percent = (self.total_installed*100L)/self.total_actions
+                percent = (self.total_installed*100)/self.total_actions
                 if total > 0:
                     try:
                         hdr, rpmloc = h
@@ -414,7 +414,7 @@ def checkSig(ts, package):
     try:
         hdr = ts.hdrFromFdno(fdno)
 
-    except rpm.error, e:
+    except rpm.error as e:
         if str(e) == "public key not availaiable":
             value = 1
         if str(e) == "public key not available":