- added revision to package archives

- remove packages from mirrors only when they are expired -> etpConst['packagesexpirationdays']
- minor changes/updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@746 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-11-21 13:00:54 +00:00
parent c0a49a60dd
commit cb2b5859be
8 changed files with 54 additions and 25 deletions
+4
View File
@@ -1207,6 +1207,10 @@ class etpDatabase:
dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"setDigest: setting new digest for idpackage: "+str(idpackage)+" -> "+str(digest))
self.cursor.execute('UPDATE extrainfo SET digest = "'+str(digest)+'" WHERE idpackage = "'+str(idpackage)+'"')
def setDownloadURL(self, idpackage, url):
dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"setDownloadURL: setting new download for idpackage: "+str(idpackage)+" -> "+url)
self.cursor.execute('UPDATE extrainfo SET download = "'+url+'" WHERE idpackage = "'+str(idpackage)+'"')
def setCounter(self, idpackage, counter):
dbLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"setCounter: setting new counter for idpackage: "+str(idpackage)+" -> "+str(counter))
try: