aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
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: