summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-dev/mp.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-dev/mp.py')
-rwxr-xr-xlinhes/linhes-dev/mp.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/linhes/linhes-dev/mp.py b/linhes/linhes-dev/mp.py
index 3cd5c84..7aa9d28 100755
--- a/linhes/linhes-dev/mp.py
+++ b/linhes/linhes-dev/mp.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Version 3.0.0
+# Version 3.0.1
import os
import sys
import re
@@ -165,6 +165,8 @@ class Packagefile(object):
elif item == "pkgrel":
self.pkgrel = value
elif item == "epoch":
+ if value == "0":
+ value = ""
if value:
self.epoch = "%s:" %value
elif item == "arch":
@@ -421,11 +423,10 @@ class Packagefile(object):
elif os.path.isfile(self.XZPKG):
self.TOTALPKG = self.XZPKG
elif os.path.isfile(self.GZPKG):
- self.TOTALPKG = GZPKG
+ self.TOTALPKG = self.GZPKG
else:
print("")
- print("!!!!!!!!!!!!!!!!!")
- print(" ERROR in function update_repo: Couldn't find the new package",self.TOTALPKG)
+ print(" ERROR in function update_database: Couldn't find the new package:",self.TOTALPKG)
sys.exit(2)
print(" Copying " + self.TOTALPKG + " to " + self.PKGDEST)
@@ -476,7 +477,7 @@ class Packagefile(object):
OLDSRCPKG=""
if not os.path.isfile(self.SRCPKGDEST + "/" +self.SRCPKG):
- print("ERROR in function update_repo: Couldn't find the new package",self.SRCPKG)
+ print("ERROR in function update_srcrepo: Couldn't find the new package",self.SRCPKG)
sys.exit(2)
i = self.pkglist[0]