tFix exception where newrel would not exist. - amprolla - devuan's apt repo merger
 (HTM) git clone git://parazyd.org/amprolla.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 51e6e92bcf83248e85e51aa424c1c5ee41fb72b2
 (DIR) parent 3be961e42a72afec01ef5df9b67c6f2d7788c219
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Sun,  8 Apr 2018 11:11:33 +0200
       
       Fix exception where newrel would not exist.
       
       This was reproducible on initial merges.
       
       Diffstat:
         M lib/release.py                      |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/lib/release.py b/lib/release.py
       t@@ -50,8 +50,9 @@ def write_release(oldrel, newrel, filelist, rmstr, rewrite=True):
            # prettyt2 = time2.strftime('%a, %d %b %Y %H:%M:%S UTC')
        
            # this holds our local data in case we don't want to rehash files
       -    local_rel = open(newrel).read()
       -    local_rel = parse_release(local_rel)
       +    if isfile(newrel):
       +        local_rel = open(newrel).read()
       +        local_rel = parse_release(local_rel)
        
            old = open(oldrel).read()
            new = open(newrel, 'w')