[sysadmin-bin] Ignore DOAP files that do not validate and restore the projects.get call as the object appear to be
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Ignore DOAP files that do not validate and restore the projects.get call as the object appear to be
- Date: Tue, 9 Apr 2019 15:58:19 +0000 (UTC)
commit 601fa11e4ffd327841fa985f31d22a54e2891fd6
Author: Andrea Veri <averi redhat com>
Date: Tue Apr 9 17:58:09 2019 +0200
Ignore DOAP files that do not validate and restore the projects.get call as the object appear to be
different from the one that was fetched earlier
gitlab/gitlab-operations.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index dc9a326..17238e7 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -96,11 +96,11 @@ for project in projects:
branch_name = project.attributes.get('default_branch')
if not branch_name:
branch_name = 'master'
- nodes = ''
+
try:
nodes = semi_rdf.read_rdf(doap_url % (project_name, branch_name, project_name))
except SAXParseException:
- print 'Failed to download DOAP for %s: %s' % (project_name, e)
+ nodes = ''
for node in nodes:
if node.name != (DOAP, "Project"):
@@ -117,11 +117,11 @@ for project in projects:
uid = str(uid)
uids.append(uid)
- maints[project_name] = (project, uids)
+ maints[project_name] = uids
for project in maints:
- proj, uids = maints[project]
- for user in uids:
+ proj = gl.projects.get('GNOME/%s' % project)
+ for user in maints[project]:
if user in gnomeusers_dict:
userid = gnomeusers_dict[user]
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]