Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=583c287bfb83f0bd4152ca3dc502b64354b64947

commit 583c287bfb83f0bd4152ca3dc502b64354b64947
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Mon Sep 5 09:34:35 2011 +0200

syncpkgcd: log reasonable error message and don't stop on repoman.conf syntax 
errors

diff --git a/syncpkgd/syncpkgcd.py b/syncpkgd/syncpkgcd.py
index dd044d9..60f5a89 100644
--- a/syncpkgd/syncpkgcd.py
+++ b/syncpkgd/syncpkgcd.py
@@ -185,7 +185,11 @@ class Syncpkgcd:
sock = os.popen("export HOME=%s; . ~/.repoman.conf; echo $fst_root; echo 
$%s_servers" % (self.home, tree))
buf = sock.readlines()
sock.close()
-               fst_root = buf[0].strip()
+               try:
+                       fst_root = buf[0].strip()
+               except IndexError:
+                       self.log(pkg, "no idea what fst_root is, probably 
syntax error in repoman.conf")
+                       return
url = buf[1].strip()
try:
os.stat(fst_root)
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to