Hi,

 piwigo recommends db related packages but it seems to be needed for 
 dbconfig-common script. After changing dependency, dbconfig-common
 works fine as below.

>   Setting up dbconfig-common (1.8.46) ...
>   
>   Creating config file /etc/dbconfig-common/config with new version
>   Setting up sqlite3 (3.7.4-1) ...
>   Setting up piwigo (2.1.2-3.1) ...
>   dbconfig-common: writing config to /etc/dbconfig-common/piwigo.conf
>   
>   Creating config file /etc/dbconfig-common/piwigo.conf with new version
>   
>   Creating config file /etc/piwigo/config-db.php with new version
>   creating database piwigo: success.
>   verifying database piwigo exists: success.
>   populating database via sql...  done.
>   1+0 records in
>   1+0 records out
>   512 bytes (512 B) copied, 9.388e-05 s, 5.5 MB/s


 How about this patch for installation error (etc)?

diff -Nru piwigo-2.1.2/debian/changelog piwigo-2.1.2/debian/changelog
--- piwigo-2.1.2/debian/changelog       2010-12-08 06:25:28.000000000 +0900
+++ piwigo-2.1.2/debian/changelog       2010-12-26 18:14:15.000000000 +0900
@@ -1,3 +1,15 @@
+piwigo (2.1.2-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/postrm
+    - remove /etc/dbconfig-common/piwigo.conf then /etc/dbconfig-common
+      when purging 
+  * debian/control
+    - set "Depends: sqlite3 | mysql-client | postgresql-client" and remove
+      it from Recommends to fix installation failure (Closes: #606708)
+
+ -- Hideki Yamane <henr...@debian.org>  Sun, 26 Dec 2010 18:13:34 +0900
+
 piwigo (2.1.2-3) unstable; urgency=low
 
   * Update French debconf templates translation (Closes: #605354)
diff -Nru piwigo-2.1.2/debian/control piwigo-2.1.2/debian/control
--- piwigo-2.1.2/debian/control 2010-12-08 06:24:56.000000000 +0900
+++ piwigo-2.1.2/debian/control 2010-12-26 18:13:31.000000000 +0900
@@ -19,8 +19,9 @@
  libphp-pclzip (>= 2.8.2), 
  smarty (>= 2.6.26), 
  libjs-jquery (>= 1.4.2), 
- dbconfig-common
-Recommends: mysql-client | postgresql-client | sqlite3, mysql-server | 
postgresql
+ dbconfig-common,
+ sqlite3 | mysql-client | postgresql-client
+Recommends: mysql-server | postgresql
 Description: photo gallery software for the web
  Piwigo allows you to publish and manage your collection of pictures through
  a web interface.
diff -Nru piwigo-2.1.2/debian/postrm piwigo-2.1.2/debian/postrm
--- piwigo-2.1.2/debian/postrm  2010-11-07 06:00:56.000000000 +0900
+++ piwigo-2.1.2/debian/postrm  2010-12-19 16:50:36.000000000 +0900
@@ -65,6 +65,12 @@
     if [ "$1" = purge ]; then
        rm -rf /etc/piwigo /usr/share/piwigo /var/cache/www/piwigo
     fi
+
+    rm -f /etc/dbconfig-common/piwigo.conf || true
+    if [ ! -f /etc/dbconfig-common/* ]; then
+        rmdir /etc/dbconfig-common
+    fi
+
 fi
 
 #DEBHELPER#



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to