summaryrefslogtreecommitdiff
path: root/devel/management/commands/reporead.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-11 17:23:42 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-11 17:23:42 -0500
commit58fc4756e9822d39f224a8773209e306349146e0 (patch)
treed326c593a6b859c8344410778c9e5cd3df436ebf /devel/management/commands/reporead.py
parent2f35bd492629a52f4849c379f02030c1efb2495c (diff)
parent422aaee026c57b65dda81b78b6a0f49263c6dd1e (diff)
Merge branch 'archweb-generic'lukeshu/netboot
# Conflicts: # AUTHORS # Makefile # public/views.py # settings.py # templates/public/donate.html # templates/public/download.html # templates/public/index.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; "