From b25ed52fcfd3cb9c81ae4ddf924b35adb6149e89 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 26 Nov 2005 18:51:19 +0000 Subject: deal with debian source files containing subarchives git-svn-id: file:///home/lennart/svn/public/sse/trunk@71 5fbabb74-0606-0410-a5e4-b5cc6a42724e --- feed/sse_grab.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'feed/sse_grab.py') diff --git a/feed/sse_grab.py b/feed/sse_grab.py index c2b5d06..095081e 100644 --- a/feed/sse_grab.py +++ b/feed/sse_grab.py @@ -33,7 +33,10 @@ def grab_archive(meta, recid, provider_id = SSE_PROVIDER_NONE): download = f.read(SSE_BLOCK_SIZE) != meta["version"] f.close() - archive_url = meta["archive-url"] + try: + archive_url = meta["archive-url-download"] + except KeyError: + archive_url = meta["archive-url"] if not download: print "File %s up-to-date." % archive_url -- cgit