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:
@@ -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.")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user