Entropy/DistributionUGCInterface:

- do_download() update iddownload on insert_download()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2627 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-11-02 21:52:37 +00:00
parent c39d406520
commit 8068a4bd10
+1 -1
View File
@@ -18307,7 +18307,7 @@ class DistributionUGCInterface(RemoteDbSkelInterface):
mydate = self.get_date()
iddownload = self.get_iddownload(pkgkey, mydate)
if iddownload == -1:
self.insert_download(pkgkey, mydate, count = 1)
iddownload = self.insert_download(pkgkey, mydate, count = 1)
else:
self.update_download(iddownload, pkgkey, mydate, 1)
if do_commit: self.commit()