summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-17 23:56:18 -0700
committereliott <eliott@cactuswax.net>2008-04-17 23:56:18 -0700
commit532edf85eb036631d7d007a4a2db7728edf12bb7 (patch)
tree70b5a4864f30f68e6f4979b66ffa6a716598874c /main/models.py
parent42c88bd1b945e9eae6ec584d9f17b92dbde2eb8f (diff)
Modified get_depends handling slightly
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/models.py b/main/models.py
index ef8f6cd1..333becca 100644
--- a/main/models.py
+++ b/main/models.py
@@ -235,11 +235,11 @@ class Package(models.Model):
if len(pkgs) == 0:
# couldn't find a package in the DB
# it should be a virtual depend (or a removed package)
- deps.append((None, dep.depname, None))
+ deps.append({'dep': dep, 'pkg': None})
continue
else:
- for p in pkgs:
- deps.append((p.id,dep.depname,dep.depvcmp))
+ for pkg in pkgs:
+ deps.append({'dep': dep, 'pkg': pkg})
return deps
class PackageFile(models.Model):