- when installing a package, datecreation will be updated accordingly to the system date

- fixed few things here and there
- started to work on spritz packages search


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@994 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-01-05 00:49:18 +00:00
parent ad3faba1eb
commit b481d9407e
9 changed files with 220 additions and 236 deletions
+5
View File
@@ -1543,6 +1543,11 @@ class etpDatabase(TextInterface):
raise exceptionTools.CorruptionError("CorruptionError: I tried to insert compile flags but then, fetching it returned -1. There's something broken.")
self.commitChanges()
# date expressed the unix way
def setDateCreation(self, idpackage, date):
self.cursor.execute('UPDATE extrainfo SET datecreation = (?) WHERE idpackage = (?)', (str(date),idpackage,))
self.commitChanges()
def setDigest(self, idpackage, digest):
self.cursor.execute('UPDATE extrainfo SET digest = (?) WHERE idpackage = (?)', (digest,idpackage,))
self.commitChanges()