[med-svn] r6479 - trunk/packages/gbrowse/trunk/debian

Charles Plessy plessy at alioth.debian.org
Thu Apr 7 06:23:01 UTC 2011


Author: plessy
Date: 2011-04-07 06:22:53 +0000 (Thu, 07 Apr 2011)
New Revision: 6479

Modified:
   trunk/packages/gbrowse/trunk/debian/gbrowse-data.postinst
   trunk/packages/gbrowse/trunk/debian/postinst
   trunk/packages/gbrowse/trunk/debian/postrm
Log:
Normalised indentation in maintainer scripts.

This is quite cosmetic, but I hope it will help to figure out
why installing the package twice in a row fails with the error
chown: cannot access `/usr/share/gbrowse/databases': No such file or directory


Modified: trunk/packages/gbrowse/trunk/debian/gbrowse-data.postinst
===================================================================
--- trunk/packages/gbrowse/trunk/debian/gbrowse-data.postinst	2011-04-07 05:32:53 UTC (rev 6478)
+++ trunk/packages/gbrowse/trunk/debian/gbrowse-data.postinst	2011-04-07 06:22:53 UTC (rev 6479)
@@ -4,9 +4,9 @@
 
 case "$1" in
     configure)
-      chown -R root:www-data /usr/share/gbrowse/databases
-      chmod -R 770 /usr/share/gbrowse/databases
-   ;;
+        chown -R root:www-data /usr/share/gbrowse/databases
+        chmod -R 770 /usr/share/gbrowse/databases
+    ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;

Modified: trunk/packages/gbrowse/trunk/debian/postinst
===================================================================
--- trunk/packages/gbrowse/trunk/debian/postinst	2011-04-07 05:32:53 UTC (rev 6478)
+++ trunk/packages/gbrowse/trunk/debian/postinst	2011-04-07 06:22:53 UTC (rev 6479)
@@ -4,20 +4,20 @@
 
 case "$1" in
     configure)
-    if [ ! -d /var/cache/gbrowse ] ; then
-        mkdir -p /var/cache/gbrowse
-    fi
-
-chown -R root:www-data /usr/share/gbrowse/databases
-chmod -R 770 /usr/share/gbrowse/databases
-chown -R root:www-data /var/cache/gbrowse
-chmod -R 770 /var/cache/gbrowse
-# Initialize account database
-perl /usr/bin/gbrowse_metadb_config
-chown -R www-data:www-data /var/cache/gbrowse/sessions
-chown www-data:www-data /usr/share/gbrowse/databases/users.sqlite
-
-update-rc.d gbrowse-slave defaults
+        if [ ! -d /var/cache/gbrowse ] ; then
+            mkdir -p /var/cache/gbrowse
+        fi
+        
+        chown -R root:www-data /usr/share/gbrowse/databases
+        chmod -R 770 /usr/share/gbrowse/databases
+        chown -R root:www-data /var/cache/gbrowse
+        chmod -R 770 /var/cache/gbrowse
+        # Initialize account database
+        perl /usr/bin/gbrowse_metadb_config
+        chown -R www-data:www-data /var/cache/gbrowse/sessions
+        chown www-data:www-data /usr/share/gbrowse/databases/users.sqlite
+        
+        update-rc.d gbrowse-slave defaults
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: trunk/packages/gbrowse/trunk/debian/postrm
===================================================================
--- trunk/packages/gbrowse/trunk/debian/postrm	2011-04-07 05:32:53 UTC (rev 6478)
+++ trunk/packages/gbrowse/trunk/debian/postrm	2011-04-07 06:22:53 UTC (rev 6479)
@@ -4,26 +4,21 @@
 
 case "$1" in
     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-rm -rf /var/cache/gbrowse
-
-if [ -e /usr/share/gbrowse ]
-then
-rm -rf /usr/share/gbrowse
-fi
-
-if [ "$1" = "purge" ]; then
-update-rc.d gbrowse-slave  remove
-  if [ -e /etc/init.d/gbrowse-slave ]
-  then
-     rm /etc/init.d/gbrowse-slave
-  fi
-  if [ -e /etc/default/gbrowse-slave ]
-  then
-    rm /etc/default/gbrowse-slave
-  fi
-fi
-
-
+        rm -rf /var/cache/gbrowse
+        
+        if [ -e /usr/share/gbrowse ] ; then
+            rm -rf /usr/share/gbrowse
+        fi
+        
+        if [ "$1" = "purge" ] ; then
+            update-rc.d gbrowse-slave  remove
+            if [ -e /etc/init.d/gbrowse-slave ] ; then
+                rm /etc/init.d/gbrowse-slave
+            fi
+            if [ -e /etc/default/gbrowse-slave ] ; then
+                rm /etc/default/gbrowse-slave
+            fi
+        fi
     ;;
 
     *)




More information about the debian-med-commit mailing list