[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#156317: dpkg-source: confusing error when source format is unsupported



Package: dpkg-dev
Version: 1.10.4
Severity: minor
Tags: patch

aps100@cyclone:~/tmp$ cat hello_1.3-18.dsc
Format: MOOOOOOOOOOOOOOO
Source: hello
Version: 1.3-18
Binary: hello
Maintainer: Adam Heath <doogie@debian.org>
Architecture: any
Standards-Version: 3.0.1.0
Files: 
 be75cfb3287cda4e91e45327428c8ca1 87701 hello_1.3.orig.tar.gz
 e9406a5ff284a74b23a98538be5735e8 5092 hello_1.3-18.diff.gz
aps100@cyclone:~/tmp$ dpkg-source -x hello_1.3-18.dsc
dpkg-source: error: Unsupported format of .dsc file (1.0)

I would have expected:

dpkg-source: error: Unsupported format of .dsc file (MOOOOOOOOOOOOOOO)

--- /usr/bin/dpkg-source	2002-07-14 21:19:49.000000000 +0100
+++ dpkg-source	2002-08-11 18:10:49.000000000 +0100
@@ -518,7 +593,7 @@
 
     if (defined $fi{'S Format'}) {
 	if (not handleformat($fi{'S Format'})) {
-	    &error("Unsupported format of .dsc file ($dscformat)");
+	    &error("Unsupported format of .dsc file (" . $fi{'S Format'} . ")"); 	}
         $dscformat=$fi{'S Format'};
     }


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cyclone 2.4.19 #7 Sat Aug 3 16:06:09 BST 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages dpkg-dev depends on:
ii  binutils                  2.12.90.0.15-1 The GNU assembler, linker and bina
ii  cpio                      2.5-1          GNU cpio -- a program to manage ar
ii  make                      3.79.1-14      The GNU version of the "make" util
ii  patch                     2.5.4-11       Apply a diff file to an original
ii  perl [perl5]              5.8.0-6        Larry Wall's Practical Extraction 
ii  perl-modules              5.8.0-6        Core Perl modules.

-- no debconf information


-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK



Reply to: