summaryrefslogtreecommitdiff
path: root/devel/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-16 21:08:29 -0600
committerDan McGee <dan@archlinux.org>2010-02-16 21:08:29 -0600
commit6d28f81801581e2258b1d13eb40b6f6c98beaca0 (patch)
tree1e3bf5013984753856f1e23326f3457c2580122c /devel/management
parent11e1c2ef82c0b990cec10e5f4cdfbb0c6031bdba (diff)
reporead: use different timestamp for each packagerelease_2010-02-17
Since these timestamps will differ across repos and arches anyway (for a total of 10 distinct timestamps currently per hour), it isn't really necessary to only use one timestamp. Allow each package to get a unique creation time. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management')
-rwxr-xr-xdevel/management/commands/reporead.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 1906a441..733e9d3e 100755
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -176,7 +176,6 @@ def db_update(archname, pkgs):
# efficient by not having to go to the database for each package to
# SELECT them by name.
dbdict = dict([(pkg.pkgname, pkg) for pkg in dbpkgs])
- now = datetime.now()
# go go set theory!
# thank you python for having a set class <3
@@ -209,7 +208,7 @@ def db_update(archname, pkgs):
for p in [x for x in pkgs if x.name in in_sync_not_db]:
logger.info("Adding package %s", p.name)
pkg = Package(pkgname = p.name, arch = architecture, repo = repository)
- populate_pkg(pkg, p, timestamp=now)
+ populate_pkg(pkg, p)
# packages in database and not in syncdb (remove from database)
logger.debug("Set theory: Packages in database not in syncdb")
@@ -230,7 +229,7 @@ def db_update(archname, pkgs):
logger.info("Updating package %s in database", p.name)
pkg = Package.objects.get(
pkgname=p.name,arch=architecture, repo=repository)
- populate_pkg(pkg, p, timestamp=now)
+ populate_pkg(pkg, p)
logger.info('Finished updating Arch: %s' % archname)