]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Added a comment: Does the exclude feature work at all?
authorhttps://launchpad.net/~beaufils <beaufils@web>
Mon, 22 Jun 2015 10:49:53 +0000 (06:49 -0400)
committeradmin <admin@branchable.com>
Mon, 22 Jun 2015 10:49:53 +0000 (06:49 -0400)
doc/forum/Need_something_more_powerful_than_Exclude/comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment [new file with mode: 0644]

diff --git a/doc/forum/Need_something_more_powerful_than_Exclude/comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment b/doc/forum/Need_something_more_powerful_than_Exclude/comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment
new file mode 100644 (file)
index 0000000..91ad02d
--- /dev/null
@@ -0,0 +1,47 @@
+[[!comment format=mdwn
+ username="https://launchpad.net/~beaufils"
+ nickname="beaufils"
+ subject="Does the exclude feature work at all?"
+ date="2015-06-22T10:49:53Z"
+ content="""
+I am not sure if that is a bug or a feature, but it is annoying, definitively related to this post:
+
+    $ ikiwiki --version
+    ikiwiki version 3.20141016.2
+
+    $ mkdir src ; echo A >src/get ; echo A >src/noget
+
+    $ ikiwiki src out                          
+    $ cat out/noget 
+    A
+
+    # Let's ask ikiwiki to forget noget
+    $ ikiwiki src out --exclude noget          
+    $ cat out/noget 
+    A
+
+    # No? Maybe with --rebuild?
+    $ ikiwiki src out --exclude noget --rebuild
+    $ cat out/noget 
+    A
+
+    # So let's remove it manually and try again
+    $ rm out/noget 
+
+    $ ikiwiki src out --exclude noget          
+    $ cat out/noget
+    cat: out/noget: No such file or directory
+
+    # Hum are we sure it worked?
+    $ ikiwiki src out --exclude noget --rebuild
+    $ cat out/noget
+    A
+
+    # Nope :-(
+
+I am really confused with the exclude feature and the way ikiwiki lookup files. Finally I tend to think this is a bug.
+
+Is there a way to make ikiwiki consider that a file in the `srcdir` should not be present in the `destdir` and thus removed if present?
+
+--[[bbb]]
+"""]]