[sysadmin-bin: 132/168] Remove pending repos from the repositories.doap file
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin: 132/168] Remove pending repos from the repositories.doap file
- Date: Thu, 24 May 2012 20:02:32 +0000 (UTC)
commit 783c8ce6993db9170a180cfe1d76461781a63c80
Author: Olav Vitters <olav vitters nl>
Date: Sun Apr 18 13:35:57 2010 +0200
Remove pending repos from the repositories.doap file
This as the doap file hasn't been checked for a valid syntax.
build-repo-list | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/build-repo-list b/build-repo-list
index 1697a64..b149b1e 100755
--- a/build-repo-list
+++ b/build-repo-list
@@ -34,6 +34,7 @@ for group in grouplist:
class Repo:
def __init__(self, repopath):
self.path = repopath
+ self.pending = os.path.isfile(os.path.join(repopath, 'pending'))
shortname = re.sub('/git/', '', repopath)
shortname = re.sub('/srv/', '', shortname)
@@ -42,7 +43,7 @@ class Repo:
self.shortname = shortname
pending = ''
- if os.path.isfile(os.path.join(repopath, 'pending')):
+ if self.pending:
pending = '[PENDING] '
desc_file = os.path.join(repopath, 'description')
@@ -112,7 +113,7 @@ elif options.output == 'doap':
nodes = []
def add_file(repo):
doapfile = os.path.join(repo.path, "gnome_doap")
- if os.path.isfile(doapfile):
+ if os.path.isfile(doapfile) and not repo.pending:
f = open(doapfile)
file_nodes = semi_rdf.read_rdf(f)
f.close()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]