summaryrefslogtreecommitdiffstats
path: root/devel/management/commands
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-05 17:25:00 +0200
committerDan McGee <dan@archlinux.org>2012-07-05 17:25:00 +0200
commitdaf011b67a338f26ead8058a9f9caedfe251c62c (patch)
tree12dd5d423c6c5ff84e7d5e11308c6096a4d659f0 /devel/management/commands
parentb88ef911b8c5e62b23ceb6d13d1a7a4f1b176f7f (diff)
downloadarchweb-daf011b67a338f26ead8058a9f9caedfe251c62c.tar.gz
archweb-daf011b67a338f26ead8058a9f9caedfe251c62c.tar.xz
reporead: properly handle cases where last_update == files_last_update
We should assume the filelists are up to date in this case, not out of date. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands')
-rw-r--r--devel/management/commands/reporead.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 4e242af..51c73c0 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -273,7 +273,7 @@ def populate_files(dbpkg, repopkg, force=False):
return
if not dbpkg.files_last_update or not dbpkg.last_update:
pass
- elif dbpkg.files_last_update > dbpkg.last_update:
+ elif dbpkg.files_last_update >= dbpkg.last_update:
return
# only delete files if we are reading a DB that contains them
@@ -427,7 +427,7 @@ def filesonly_update(archname, reponame, pkgs, force=False):
with transaction.commit_on_success():
if not dbpkg.files_last_update or not dbpkg.last_update:
pass
- elif not force and dbpkg.files_last_update > dbpkg.last_update:
+ elif not force and dbpkg.files_last_update >= dbpkg.last_update:
logger.debug("Files for %s are up to date", pkg.name)
continue
dbpkg = Package.objects.select_for_update().get(id=dbpkg.id)