diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-09-27 23:40:22 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-09-27 23:40:22 +0200 |
commit | 8da98dae6713013c4b3eaed627f8053eb0eb490e (patch) | |
tree | faecd32bcc6e92c3524739ba7aee401e9d67608e | |
parent | 84700693157d78f401c96110512ffdc225a2e290 (diff) |
gbp-pq: don't fail on missing series file
but create an empty branch instead
-rw-r--r-- | gbp/pq.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |