Fix unpack option to look only for 'true' values.

git-svn-id: http://emdebian.org/svn/current@7720 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2011-01-28 10:49:07 +00:00
parent dafb8035fd
commit ed85bff925
2 changed files with 5 additions and 4 deletions

3
debian/changelog vendored
View file

@ -10,8 +10,9 @@ multistrap (2.1.9) experimental; urgency=low
bugs via the BTS bugs via the BTS
* Add support for addimportant in the general section only. * Add support for addimportant in the general section only.
(Closes: #610634) (Closes: #610634)
* Fix unpack option to look only for 'true' values.
-- Neil Williams <codehelp@debian.org> Sat, 22 Jan 2011 23:43:27 +0000 -- Neil Williams <neilw@toby-churchill.com> Fri, 28 Jan 2011 10:49:01 +0000
multistrap (2.1.8) experimental; urgency=low multistrap (2.1.8) experimental; urgency=low

View file

@ -39,7 +39,7 @@ setlocale(LC_MESSAGES, "");
textdomain("multistrap"); textdomain("multistrap");
$progname = basename($0); $progname = basename($0);
$ourversion = &our_version(); $ourversion = &our_version();
$unpack = "true"; $unpack = "false";
%omitdebsrc=(); %omitdebsrc=();
while( @ARGV ) { while( @ARGV ) {
@ -857,9 +857,9 @@ sub cascade {
if (defined $keys{$section}{'directory'} and (not defined $dir)); if (defined $keys{$section}{'directory'} and (not defined $dir));
# support the original value but replace by new value. # support the original value but replace by new value.
$unpack = lc($keys{$section}{'unpack'}) $unpack = lc($keys{$section}{'unpack'})
if (defined $keys{$section}{'forceunpack'} and (not defined $unpack)); if (defined $keys{$section}{'forceunpack'} and (lc($keys{$section}{'forceunpack'}) eq "true"));
$unpack = lc($keys{$section}{'unpack'}) $unpack = lc($keys{$section}{'unpack'})
if (defined $keys{$section}{'unpack'} and (not defined $unpack)); if (defined $keys{$section}{'unpack'} and (lc($keys{$section}{'unpack'} eq "true")));
$configsh = lc($keys{$section}{'configscript'}) $configsh = lc($keys{$section}{'configscript'})
if (defined $keys{$section}{'configscript'} and (not defined $configsh)); if (defined $keys{$section}{'configscript'} and (not defined $configsh));
$tgzname = lc($keys{$section}{'tarballname'}) $tgzname = lc($keys{$section}{'tarballname'})