summaryrefslogtreecommitdiff
path: root/devel/management/commands/reporead.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-11 17:13:02 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-11 17:13:02 -0500
commit422aaee026c57b65dda81b78b6a0f49263c6dd1e (patch)
tree6bc80bcb093ed2f0932d4469a4400ce293c94860 /devel/management/commands/reporead.py
parent464b8d1fa572ab57d41569d45ba94b771e0a5ced (diff)
parent83eea8e167e698f8f14ea2494837510404dc75ff (diff)
Merge branch 'archweb' into archweb-generic
# Conflicts: # templates/public/download.html
Diffstat (limited to 'devel/management/commands/reporead.py')
-rw-r--r--devel/management/commands/reporead.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index c76b5011..7b963c28 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -33,7 +33,7 @@ from django.utils.timezone import now
from devel.utils import UserFinder
from main.models import Arch, Package, PackageFile, Repo
-from packages.models import Depend, Conflict, Provision, Replacement, Update
+from packages.models import Depend, Conflict, Provision, Replacement, Update, PackageRelation
from packages.utils import parse_version
@@ -401,6 +401,12 @@ def db_update(archname, reponame, pkgs, force=False):
with transaction.atomic():
populate_pkg(dbpkg, pkg, timestamp=timestamp)
Update.objects.log_update(None, dbpkg)
+ prel = PackageRelation(pkgbase=dbpkg.pkgbase,
+ user=dbpkg.packager,
+ type=PackageRelation.MAINTAINER)
+ prel.save()
+
+
except IntegrityError:
if architecture.agnostic:
logger.warning("Could not add package %s; "