Correct --dumpsetup to include the srcdir in the setup file.

master
Joey Hess 1997-08-14 08:31:42 -04:00
parent 04a03c097a
commit 91cb55d96b
3 changed files with 5 additions and 1 deletions

1
debian/changelog vendored
View File

@ -8,6 +8,7 @@ ikiwiki (2.71) UNRELEASED; urgency=low
* French translation update from Philippe Batailler. Closes: #506250
* Spanish translation update from Victor Moral.
* Fix handling of wrappergroup option.
* Correct --dumpsetup to include the srcdir in the setup file.
-- Joey Hess <joeyh@debian.org> Mon, 17 Nov 2008 14:02:10 -0500

View File

@ -1 +1,3 @@
Calling ikiwiki with a bunch of options, including the --dumpsetup somefile.setup option creates somefile.setup for later reuse with the --setup option. The destination dir however is not saved in the setup file, it has destdir => ''.
> that broke in version 2.64 .. fixed [[done]] --[[Joey]]

View File

@ -163,7 +163,8 @@ sub main () { #{{{
}
if ($config{dumpsetup}) {
$config{srdir}=$config{destdir}="";
$config{srcdir}="" if ! defined $config{srcdir};
$config{destdir}="" if ! defined $config{destdir};
$config{syslog}=1 if $config{setupsyslog};
require IkiWiki::Setup;
IkiWiki::Setup::dump($config{dumpsetup});