| author | Helio Chissini de Castro <helio@kde.org> | 2012-07-11 03:55:23 (GMT) |
|---|---|---|
| committer | Helio Chissini de Castro <helio@kde.org> | 2012-07-11 03:55:23 (GMT) |
| commit | c5dfc768d1c7b86c123caeb8916c3e6ea5555d95 (patch) (side-by-side diff) | |
| tree | 986d5eff9f7b17413980f83a396a6afcf3e43e2b | |
| parent | 3153d95e34b88874b7ce88e02adf7d254e8cb6a6 (diff) | |
| download | anagrman-c5dfc768d1c7b86c123caeb8916c3e6ea5555d95.tar.gz anagrman-c5dfc768d1c7b86c123caeb8916c3e6ea5555d95.tar.bz2 | |
- Modified tool to accept new directories
| -rwxr-xr-x | anagrman | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,13 +3,14 @@ import argparse import urllib2 import codecs +import sys from HTMLParser import HTMLParser from xml.dom.minidom import parseString from xml.dom.minidom import Document from xml.sax.saxutils import unescape from collections import defaultdict -ccuManifestCgitURL = 'http://cgit.collabora.com/git/android/manifests.git' +ccuManifestCgitURL = 'http://cgit.collabora.com/git/android/aggregates.git' availableManifests = [] listUpdated = False verbose = False @@ -39,7 +40,7 @@ class CGitPlainXMLParser: fetch = '' revision = '' fremote = '' - req = urllib2.Request( ccuManifestCgitURL + '/plain/' + manifest + '/local_manifest.xml') + req = urllib2.Request( ccuManifestCgitURL + '/plain/' + manifest ) data = urllib2.urlopen(req) dom = parseString( data.read() ) xmlrem = dom.getElementsByTagName('remove-project') @@ -71,7 +72,7 @@ class CGitPlainXMLParser: if projects.has_key( name ): if projects[name]['revision'] != revision: print "Arghhhhhhhhh, there are two revisions for " + name - exit + sys.exit(1) if verbose: print "Project " + name + " is present in one or more entries. Can go global." projects[name] = {'revision':revision,'remote':fremote} |
