From c27069a5505c6ceb453804aa5e674646fcef6126 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 31 Dec 2010 15:48:42 +0100 Subject: [PATCH] syncpackage: fix for versions with multiple dashes --- syncpackage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncpackage b/syncpackage index bbf81a6..8275f61 100755 --- a/syncpackage +++ b/syncpackage @@ -94,7 +94,7 @@ if need_orig: # extract package, build Source assert subprocess.call(['dpkg-source', '-x', dscname]) == 0 -os.chdir(srcpkg + '-' + new_ver.split('-')[0]) +os.chdir(srcpkg + '-' + new_ver.rsplit('-', 1)[0]) assert subprocess.call("dpkg-genchanges -q -S %s -v%s -e\"$(getent passwd $(id -u)|cut -f5 -d:|cut -f1 -d,) <$DEBEMAIL>\" | \ sed 's/^Distribution:.*$/Distribution: %s/; 1 i\Origin: debian/unstable' > ../%s_%s_source.changes" % (orig_arg, cur_ver, release, srcpkg, new_ver), shell=True) == 0 -- 2.39.5