diff options
Diffstat (limited to 'collector.py')
-rwxr-xr-x | collector.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/collector.py b/collector.py index d111a33..d5e9add 100755 --- a/collector.py +++ b/collector.py @@ -64,12 +64,17 @@ def main(argv): if not os.path.isdir(folder[directory]): os.makedirs(folder[directory]) - print('Reading available genpatches...') - read_patches = lib.read_genpatch_file(folder['out']) + + try: + print('Reading available genpatches...') + read_patches = lib.read_genpatch_file(folder['out']) + except: + read_patches = list() + pass print('Parsing genpatches from portage...') found_patches = lib.parse_genpatch_list(folder['tree']) - + new_items = 0 for item in found_patches: if item not in read_patches: |