Package: dokuwiki Version: 0.0.20050701-8 Severity: important When I upgraded dokuwiki, it moved all of my pages (without telling me anything, surprise!) but it didn't move any of the pages which were under namespaces - which are kept in directories in the data directory.
Included is a nieve patch for the postinst which will move all the files in the data dir when the migration happens. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.19-ac4 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages dokuwiki depends on: ii debconf 1.4.56 Debian configuration management sy ii php4 4:4.4.0-1 server-side, HTML-embedded scripti ii ucf 2.000 Update Configuration File: preserv Versions of packages dokuwiki recommends: ii apache2-mpm-prefork [httpd-cg 2.0.54-4 traditional model for Apache2 -- debconf information excluded
--- /tmp/dokuwiki.postinst 2005-08-18 14:26:48.000000000 -0500 +++ /var/lib/dpkg/info/dokuwiki.postinst 2005-07-28 00:22:28.000000000 -0500 @@ -139,13 +139,13 @@ # A subroutine to handle the new data directory structure introduced # in version 2005-07-01. - -# pages: -# /var/lib/dokuwiki/data/foo.txt --> /var/lib/dokuwiki/data/pages/foo.txt # # changelog: # /var/lib/dokuwiki/changes.log --> /var/lib/dokuwiki/data/changes.log # +# pages: +# /var/lib/dokuwiki/data/foo.txt --> /var/lib/dokuwiki/data/pages/foo.txt +# # attic and media: # /var/lib/dokuwiki/attic --> /var/lib/dokuwiki/data/attic # /var/lib/dokuwiki/media --> /var/lib/dokuwiki/data/media @@ -165,14 +165,13 @@ chown $rootuid, $wwwuid, "/var/lib/dokuwiki/data/media"; - # Move old page files (including namespaces) - while (</var/lib/dokuwiki/data/*>) { + # Move old page files + while (</var/lib/dokuwiki/data/*.txt>) { my $oldname = $_; s/data/data\/pages/; rename($oldname, $_) or die "Failed to move $oldname"; } - # Move the old changelog if (-e "/var/lib/dokuwiki/changes.log") {