aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-09-23 14:48:20 +0000
committerMichael Scherer <misc@mageia.org>2011-09-23 14:48:20 +0000
commit4d4619fe9f33cc03bade383a51fc81ec958645df (patch)
tree5e671eb5648554c31faecc74679c2c31d3694f31 /MgaRepo
parent3cb21da1159ee2ca782267295b2781b1cc015a5d (diff)
downloadmgarepo-4d4619fe9f33cc03bade383a51fc81ec958645df.tar
mgarepo-4d4619fe9f33cc03bade383a51fc81ec958645df.tar.gz
mgarepo-4d4619fe9f33cc03bade383a51fc81ec958645df.tar.bz2
mgarepo-4d4619fe9f33cc03bade383a51fc81ec958645df.tar.xz
mgarepo-4d4619fe9f33cc03bade383a51fc81ec958645df.zip
do not explode if the sha1.lst file is no longer here ( problem reported by grenoya on irc )
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/binrepo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index 747f3eb..a0151a7 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -120,7 +120,11 @@ def import_binaries(topdir, pkgname):
def parse_sources(path):
entries = {}
- f = open(path)
+ try:
+ f = open(path)
+ except IOError:
+ return []
+
for rawline in f:
line = rawline.strip()
try: