Package: dgit
Version: 1.0
Severity: serious
Tags: patch

$ dgit clone dbus-c++
canonical suite name for unstable is sid
starting new git history
downloading
http://ftp.debian.org/debian//pool/main/d/dbus-c++/dbus-c++_0.9.0-7.dsc...
last upload to archive has NO git hash
dbus-c++_0.9.0.orig.tar.gz ? at /usr/bin/dgit line 1483.

diff --git a/dgit b/dgit
index eb9a97c..b102e04 100755
--- a/dgit
+++ b/dgit
@@ -1481,7 +1481,7 @@ sub complete_file_from_dsc ($$) {
        my $furl = $dscurl;
        $furl =~ s{/[^/]+$}{};
        $furl .= "/$f";
-       die "$f ?" unless $f =~ m/^${package}_/;
+       die "$f ?" unless $f =~ m/^\Q${package}\E_/;
        die "$f ?" if $f =~ m#/#;
        runcmd_ordryrun_local @curl,qw(-o),$tf,'--',"$furl";
        next if !act_local();

Ian.

Reply via email to