]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fixed setting of rsync_lastver var.
authorWayne Davison <wayne@opencoder.net>
Mon, 15 Jun 2020 18:52:54 +0000 (11:52 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 15 Jun 2020 18:52:54 +0000 (11:52 -0700)
packaging/release-rsync

index a4c193c62191fc5f54558fe775f80b96c0f4c3f0..c54862ba4cbe27f5d22e5ab0dfa23a43d9965c15 100755 (executable)
@@ -75,12 +75,9 @@ def main():
 
     v_ver = 'v' + version
     rsync_ver = 'rsync-' + version
-    rsync_lastver = 'rsync-' + lastversion
 
     if os.path.lexists(rsync_ver):
         die(f'"{rsync_ver}" must not exist in the current directory.')
-    if os.path.lexists(rsync_lastver):
-        die(f'"{rsync_lastver}" must not exist in the current directory.')
 
     out = cmd_txt_chk(['git', 'tag', '-l', v_ver])
     if out != '':
@@ -99,6 +96,10 @@ def main():
         lastversion = ans
     lastversion = re.sub(r'[-.]*pre[-.]*', 'pre', lastversion)
 
+    rsync_lastver = 'rsync-' + lastversion
+    if os.path.lexists(rsync_lastver):
+        die(f'"{rsync_lastver}" must not exist in the current directory.')
+
     m = re.search(r'(pre\d+)', version)
     pre = m[1] if m else ''