Bug#863497: debsign: Cannot sign just a dsc

2017-05-27 Thread Mattia Rizzolo
Control: tag -1 pending

On Sat, May 27, 2017 at 08:18:03PM +0100, James Clarke wrote:
> Hi,
> Invoking `debsign foo.dsc` gives the error:
> 
> > debsign: Can't find or can't read dsc file !
> 
> The attached patch fixes it.

Thanks, applied!

https://anonscm.debian.org/git/collab-maint/devscripts.git/commit/?id=51e909fdd79c94a957bf441b1c4e4b5e457a07d5

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#863497: debsign: Cannot sign just a dsc

2017-05-27 Thread James Clarke
Package: devscripts
Version: 2.17.5
Severity: normal
Tags: patch

Hi,
Invoking `debsign foo.dsc` gives the error:

> debsign: Can't find or can't read dsc file !

The attached patch fixes it.

Regards,
James
>From a2321a8f177fbd4c85ff18c9809c496a462bab71 Mon Sep 17 00:00:00 2001
From: James Clarke 
Date: Sat, 27 May 2017 20:14:09 +0100
Subject: [PATCH] debsign: Fix signing a dsc directly

---
 scripts/debsign.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/debsign.sh b/scripts/debsign.sh
index 0717bead..924b03eb 100755
--- a/scripts/debsign.sh
+++ b/scripts/debsign.sh
@@ -725,7 +725,7 @@ for valid format" >&2;
 	report_signed
 
 else
-	ensure_local_copy "$remotehost" "$remotehost" "$remotedsc" dsc
+	ensure_local_copy "$remotehost" "$remotedsc" "$dsc" dsc
 	signas="$(guess_signas "$dsc")"
 	maybesign_dsc "$signas" "$remotehost" "$dsc"
 	report_signed
-- 
2.11.0