summaryrefslogtreecommitdiff
authorHelio Chissini de Castro <helio@kde.org>2012-07-13 16:34:19 (GMT)
committer Helio Chissini de Castro <helio@kde.org>2012-07-13 16:34:19 (GMT)
commit3f1d7de81db6a785591eb35ac9cffc35f1587890 (patch) (side-by-side diff)
tree620617ffc3a5c8119e8028099bc4f120f91f0e7d
parentc5dfc768d1c7b86c123caeb8916c3e6ea5555d95 (diff)
downloadanagrman-3f1d7de81db6a785591eb35ac9cffc35f1587890.tar.gz
anagrman-3f1d7de81db6a785591eb35ac9cffc35f1587890.tar.bz2
List and parse projects per name, not using their full file name
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xanagrman4
1 files changed, 2 insertions, 2 deletions
diff --git a/anagrman b/anagrman
index 40ebec5..0ab5571 100755
--- a/anagrman
+++ b/anagrman
@@ -29,7 +29,7 @@ class CgitPlainHTMLParser(HTMLParser):
self.isTag = True
def handle_data(self, data):
if self.isTag:
- availableManifests.append(data);
+ availableManifests.append(data.replace(".xml",""));
self.isTag = False
class CGitPlainXMLParser:
@@ -40,7 +40,7 @@ class CGitPlainXMLParser:
fetch = ''
revision = ''
fremote = ''
- req = urllib2.Request( ccuManifestCgitURL + '/plain/' + manifest )
+ req = urllib2.Request( ccuManifestCgitURL + '/plain/' + manifest + '.xml' )
data = urllib2.urlopen(req)
dom = parseString( data.read() )
xmlrem = dom.getElementsByTagName('remove-project')