summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2011-01-07 20:04:45 +0000
committerSimon McVittie <smcv@debian.org>2011-01-07 20:04:45 +0000
commitdff44e4a6d98cccd2b4af56397a80dc127b0242b (patch)
tree0895f47621c7457fc00ea8fb4a2c1df40882a876 /IkiWiki
parent44b0cea85f1641f33ccb305f9da6f96e812b84e9 (diff)
Add add_literal_underlay and use it for the transient underlay
This means we don't need to import Cwd and use abs_path.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/transient.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/transient.pm b/IkiWiki/Plugin/transient.pm
index c482b8552..9811aa010 100644
--- a/IkiWiki/Plugin/transient.pm
+++ b/IkiWiki/Plugin/transient.pm
@@ -25,10 +25,10 @@ sub getsetup () {
our $transientdir;
sub checkconfig () {
- eval q{use Cwd 'abs_path'};
- error($@) if $@;
- $transientdir = abs_path($config{wikistatedir})."/transient";
- add_underlay($transientdir);
+ $transientdir = $config{wikistatedir}."/transient";
+ # add_underlay treats relative underlays as relative to the installed
+ # location, not the cwd. That's not what we want here.
+ IkiWiki::add_literal_underlay($transientdir);
}
sub change (@) {