summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 16fe73e..066e0ee 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)