]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Allow underlaydir to be overridden without messing up inclusion of other underlays...
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 7 May 2009 18:02:52 +0000 (14:02 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 7 May 2009 18:02:52 +0000 (14:02 -0400)
IkiWiki.pm
debian/changelog

index e6efe18891069f128ff19ab87de717218b0a8797..6233d2eada36e376ccacbc3abe140598cf9004e4 100644 (file)
@@ -157,6 +157,13 @@ sub getsetup () {
                safe => 0, # path
                rebuild => 0,
        },
                safe => 0, # path
                rebuild => 0,
        },
+       underlaydirbase => {
+               type => "internal",
+               default => "$installdir/share/ikiwiki",
+               description => "parent directory containing additional underlays",
+               safe => 0,
+               rebuild => 0,
+       },
        wrappers => {
                type => "internal",
                default => [],
        wrappers => {
                type => "internal",
                default => [],
@@ -715,7 +722,7 @@ sub add_underlay ($) {
        my $dir=shift;
 
        if ($dir !~ /^\//) {
        my $dir=shift;
 
        if ($dir !~ /^\//) {
-               $dir="$config{underlaydir}/../$dir";
+               $dir="$config{underlaydirbase}/$dir";
        }
 
        if (! grep { $_ eq $dir } @{$config{underlaydirs}}) {
        }
 
        if (! grep { $_ eq $dir } @{$config{underlaydirs}}) {
index 36f4c16fdac7fcfa57768fc936fddbfd4391b115..d8c67b5a6763f599d64fb0707e0079e06bc13781 100644 (file)
@@ -2,6 +2,8 @@ ikiwiki (3.13) UNRELEASED; urgency=low
 
   * ikiwiki-transition: If passed a nonexistant srcdir, or one not
     containing .ikiwiki, abort with an error rather than creating it.
 
   * ikiwiki-transition: If passed a nonexistant srcdir, or one not
     containing .ikiwiki, abort with an error rather than creating it.
+  * Allow underlaydir to be overridden without messing up inclusion
+    of other underlays via add_underlay.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 06 May 2009 20:45:44 -0400
 
 
  -- Joey Hess <joeyh@debian.org>  Wed, 06 May 2009 20:45:44 -0400