summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 16fe73e4..066e0ee6 100644
--- a/main/models.py
+++ b/main/models.py
@@ -276,6 +276,12 @@ class Package(models.Model):
return "http://bugs.archlinux.org/?project=%d&string=%s" % \
(project, self.pkgname)
+ def is_same_version(self, other):
+ 'is this package similar, name and version-wise, to another'
+ return self.pkgname == other.pkgname \
+ and self.pkgver == other.pkgver \
+ and self.pkgrel == other.pkgrel
+
class Signoff(models.Model):
pkg = models.ForeignKey(Package)