Blob Blame History Raw
From d7aae0860cf75be76463251978cd63af6aec87a7 Mon Sep 17 00:00:00 2001
From: Bill Nottingham <notting@redhat.com>
Date: Wed, 29 Oct 2008 11:54:55 -0400
Subject: [PATCH] Fall back to the unsigned path when checking ExcludeArch/ExclusiveArch, as well.

---
 mash/__init__.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/mash/__init__.py b/mash/__init__.py
index f9f94dc..eafb1d7 100644
--- a/mash/__init__.py
+++ b/mash/__init__.py
@@ -216,7 +216,15 @@ class Mash:
                     os.mkdir(os.path.dirname(cachepath))
                 except:
                     pass
-                result = urlgrabber.grabber.urlgrab(path,cachepath)
+                try:
+                    result = urlgrabber.grabber.urlgrab(path, cachepath)
+                except:
+                    path = os.path.join(koji.pathinfo.build(builds_hash[pkg['build_id']]), koji.pathinfo.rpm(pkg))
+                    try:
+                        result = urlgrabber.grabber.urlgrab(path, cachepath)
+                    except:
+                        print "WARNING: can't download %s from %s" % (nevra(pkg), srcurl)
+                        return None
 
             fd = open(result)
             return fd
-- 
1.6.0.3