summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-01 06:56:12 +0100
committerDan McGee <dan@archlinux.org>2011-12-01 06:56:12 +0100
commit4d02cd5b5d4437dd1543e2d45044db72da1989f4 (patch)
treeaf9bc03dc8417409672b766aaf198206889e21e9
parent025042ef0d23378a5f10fe1cff8f660f51638615 (diff)
downloadarchweb-4d02cd5b5d4437dd1543e2d45044db72da1989f4.tar.gz
archweb-4d02cd5b5d4437dd1543e2d45044db72da1989f4.tar.xz
reporead: fix not defined variable
Way to fail at refactoring, Dan. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--devel/management/commands/reporead.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index e4ba858..c444538 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -329,6 +329,8 @@ def db_update(archname, reponame, pkgs, force=False):
"""
logger.info('Updating %s (%s)', reponame, archname)
dbpkgs = update_common(archname, reponame, pkgs, True)
+ repository = Repo.objects.get(name__iexact=reponame)
+ architecture = Arch.objects.get(name__iexact=archname)
# This makes our inner loop where we find packages by name *way* more
# efficient by not having to go to the database for each package to