summaryrefslogtreecommitdiff
path: root/devel/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'devel/management/commands')
-rw-r--r--devel/management/commands/reporead.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index ee606846..6e71c26e 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -266,14 +266,12 @@ def db_update(archname, reponame, pkgs, options):
continue
else:
timestamp = datetime.now()
- pkg = Package.objects.get(
- pkgname=p.name,arch=architecture, repo=repository)
if filesonly:
- logger.info("Possibly populating files for package %s in database", p.name)
- populate_files(pkg, p)
+ logger.debug("Checking files for package %s in database", p.name)
+ populate_files(dbp, p)
else:
logger.info("Updating package %s in database", p.name)
- populate_pkg(pkg, p, force=force, timestamp=timestamp)
+ populate_pkg(dbp, p, force=force, timestamp=timestamp)
logger.info('Finished updating Arch: %s' % archname)