summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-23 20:30:31 -0500
committerDan McGee <dan@archlinux.org>2011-06-23 20:30:31 -0500
commitc584ffc9b6bc9bdab1616b096ccaa1c1cd762f69 (patch)
tree99589c2ce05c8bfaeecf814ca4b57551f698433d /main
parent8f3c60c8dec4c162ad5dc753b97ce5177fb12ef1 (diff)
Fix syntax errors, == not =release_2011-06-23
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index b52c45fb..9010817b 100644
--- a/main/models.py
+++ b/main/models.py
@@ -243,7 +243,7 @@ class Package(models.Model):
if len(dep_pkgs) > 1:
dep_pkgs = [d for d in dep_pkgs
if d.pkg.repo.testing == self.repo.testing and
- d.pkg.repo.staging = self.repo.staging]
+ d.pkg.repo.staging == self.repo.staging]
if len(dep_pkgs) > 0:
dep = dep_pkgs[0]
trimmed.append(dep)
@@ -276,7 +276,7 @@ class Package(models.Model):
pkg = pkgs[0]
# prevents yet more DB queries, these lists should be short
pkgs = [p for p in pkgs if p.repo.testing == self.repo.testing
- and p.repo.staging = self.repo.staging]
+ and p.repo.staging == self.repo.staging]
if len(pkgs) > 0:
pkg = pkgs[0]
deps.append({'dep': dep, 'pkg': pkg})