tags 306874 patch
thanks
[EMAIL PROTECTED]/dpkg--devel--1.13--patch-8:
--- orig/ChangeLog
+++ mod/ChangeLog
@@ -1,5 +1,8 @@
2005-07-24 Frank Lichtenheld <[EMAIL PROTECTED]>
+ * scripts/dpkg-source.pl: give more meaningful error message
+ if first argument to dpkg-source -x is a directory
+
* scripts/controllib.pl (parsecdata): ignore trailing newlines
in single paragraph control files.
--- orig/debian/changelog
+++ mod/debian/changelog
@@ -10,6 +10,9 @@
(Frank Lichtenheld). Closes: #171762, #302229.
* Ignore trailing newlines in single paragraph control files
(Frank Lichtenheld). Closes: #57194, #156319
+ * give more meaningful error message if first argument to
+ dpkg-source -x is a directory (Frank Lichtenheld).
+ Closes: #306874
--
--- orig/scripts/dpkg-source.pl
+++ mod/scripts/dpkg-source.pl
@@ -504,6 +504,8 @@
@ARGV<=2 || &usageerr("-x takes no more than two arguments");
$dsc= shift(@ARGV);
$dsc= "./$dsc" unless $dsc =~ m:^/:;
+ ! -d $dsc
+ || &usageerr("first argument for -x needs to be a file not a
directory");
$dscdir= $dsc; $dscdir= "./$dscdir" unless $dsc =~ m,^/|^\./,;
$dscdir =~ s,/[^/]+$,,;
if (@ARGV) {
Gruesse,
--
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]