two fixes for the latest changes

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@688 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-11-15 16:55:36 +00:00
parent e9a057e043
commit c6ddcbfafd
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -494,7 +494,11 @@ class etpDatabase:
self.checkReadOnly()
if revision == -1:
revision = etpData['revision']
try:
revision = etpData['revision']
except:
etpData['revision'] = 0 # revision not specified
revision = 0
dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"addPackage: called.")
+1 -1
View File
@@ -64,7 +64,7 @@ def generator(package, dbconnection = None, enzymeRequestBranch = etpConst['bran
# update latest counter
f = open(edbCOUNTER,"r")
counter = int(f.readline.strip())
counter = int(f.readline().strip())
f.close()
dbconn.setLatestCounter(counter)