amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit 51e6e92bcf83248e85e51aa424c1c5ee41fb72b2
parent 3be961e42a72afec01ef5df9b67c6f2d7788c219
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:
Mlib/release.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/release.py b/lib/release.py @@ -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')