Author: adsb Date: 2009-05-11 19:45:50 +0000 (Mon, 11 May 2009) New Revision: 1878
Modified: trunk/debian/changelog trunk/scripts/chdist.pl Log: chdist: Make --data-dir work with relative paths. (Closes: #528254) Modified: trunk/debian/changelog =================================================================== --- trunk/debian/changelog 2009-05-10 20:33:28 UTC (rev 1877) +++ trunk/debian/changelog 2009-05-11 19:45:50 UTC (rev 1878) @@ -1,5 +1,6 @@ devscripts (2.10.50) UNRELEASED; urgency=low + * chdist: Make --data-dir work with relative paths. (Closes: #528254) * debchange: Add karmic (koala) to the list of recognised Ubuntu distributions. * debuild: Use printf when parsing the DEBUILD_LINTIAN_OPTS configuration Modified: trunk/scripts/chdist.pl =================================================================== --- trunk/scripts/chdist.pl 2009-05-10 20:33:28 UTC (rev 1877) +++ trunk/scripts/chdist.pl 2009-05-11 19:45:50 UTC (rev 1878) @@ -155,6 +155,10 @@ "version" => \$version, ); +# Fix-up relative paths +$datadir = $ENV{'PWD'} . "/$datadir" unless $datadir =~ m!^/!; +$datadir =~ s!/\./!/!g; + if ($help) { print usage(0); exit; -- To unsubscribe, send mail to pkg-devscripts-unsubscr...@teams.debian.net.