From 29869d25c6590b6e3102686b44faebf8946deb23 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 3 Jun 2010 22:14:55 +0200 Subject: [PATCH] ack-sync: Fix .dsc file name for fake syncs. --- ack-sync | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ack-sync b/ack-sync index 961f0f3..06728e2 100755 --- a/ack-sync +++ b/ack-sync @@ -71,7 +71,12 @@ def get_source(package, version, section, dist, uploader_name, uploader_email, b cmd += ["-k", key] subprocess.check_call(cmd) - dsc_file = package + "_" + strip_epoch(version) + ".dsc" + dsc_file = package + "_" + strip_epoch(version) + "fakesync1.dsc" + if not os.path.exists(os.path.join(workdir, dsc_file)): + dsc_file = package + "_" + strip_epoch(version) + ".dsc" + if not os.path.exists(os.path.join(workdir, dsc_file)): + print >> sys.stderr, "E: Failed to find .dsc file created by syncpackage." + sys.exit(1) return dsc_file def build_source(dist, dsc_file):