From: Guido Günther Date: Tue, 27 Sep 2011 21:40:22 +0000 (+0200) Subject: gbp-pq: don't fail on missing series file X-Git-Tag: debian/0.5.31~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8da98dae6713013c4b3eaed627f8053eb0eb490e;p=tools%2Fgit-buildpackage.git gbp-pq: don't fail on missing series file but create an empty branch instead --- diff --git a/gbp/pq.py b/gbp/pq.py index b8d62a1..9ffe77a 100644 --- a/gbp/pq.py +++ b/gbp/pq.py @@ -55,6 +55,10 @@ class PatchQueue(list): def read_series_file(klass, seriesfile): """Read a series file into L{Patch} objects""" patch_dir = os.path.dirname(seriesfile) + + if not os.path.exists(seriesfile): + return [] + try: s = file(seriesfile) except Exception, err: