Regex special meta-characters (mainly like "+" in versions) embedded in $basename
made the regex fail which resulted in unwanted upgrade of source packages to
Format: 2.0.
at the beginning of the list of path to search, even if they
are already listed (one might want to use LD_LIBRARY_PATH to
change the search order).
+ * scripts/dpkg-source.pl: Fix regex used to identify the extension
+ of the orig.tar.{gz,bz2,lzma} file.
2007-11-21 Raphael Hertzog <hertzog@debian.org>
* dpkg-shlibdeps will try harder to identify packages providing a library
by looking up dpkg -S on the realpath of any symlink to a library.
Closes: #452339
+ * dpkg-source now correctly identifies the extension of the
+ orig.tar.{gz,bz2,lzma} file and won't unexpectedly create "Format: 2.0"
+ .dsc files.
[ Updated man pages translations ]
* Swedish (Peter Karlsson)
$tardirbase= $origdirbase; $tardirname= $origdirname;
$tarname= $origtargz || "$basename.orig.tar.$comp_ext";
- $tarname =~ /$basename.orig.tar.($comp_regex)/ ||
+ if ($tarname =~ /\Q$basename\E\.orig\.tar\.($comp_regex)/) {
+ if (($1 ne 'gz') && ($f{'Format'} < 2)) { $f{'Format'} = '2.0' };
+ } else {
warning(_g(".orig.tar name %s is not <package>_<upstreamversion>" .
".orig.tar (wanted %s)"),
$tarname, "$basename.orig.tar.$comp_regex");
- if (($1 ne 'gz') && ($f{'Format'} < 2)) { $f{'Format'} = '2.0' };
+ }
} else {
$tardirbase= $dirbase; $tardirname= $dirname;
$tarname= "$basenamerev.tar.$comp_ext";