[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. debian/0.1.1-34-g6406a78

Ryan Niebur ryanryan52 at gmail.com
Thu Dec 10 01:25:44 UTC 2009


The following commit has been merged in the master branch:
commit 1b4cb9191053dc8d0128be1732585fdafd0899ec
Author: Francesco Poli (t1000) <frx at firenze.linux.it>
Date:   Tue Dec 8 23:32:21 2009 +0100

    cosmetic changes in post- and pre- scripts
    
    I don't really like tabs in code; some other reformatting.

diff --git a/debian/changelog b/debian/changelog
index ce1ce07..07e3a9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,8 +17,9 @@ apt-listbugs (0.1.2) UNRELEASED; urgency=low
     were messed up)
   * added clean-up code to the postinst script in order to remove obsolete
     index files (Closes: #484385)
+  * cosmetic changes in postinst, postrm, and preinst scripts
 
- -- Francesco Poli (t1000) <frx at firenze.linux.it>  Tue, 08 Dec 2009 22:37:29 +0100
+ -- Francesco Poli (t1000) <frx at firenze.linux.it>  Tue, 08 Dec 2009 23:29:59 +0100
 
 apt-listbugs (0.1.1) unstable; urgency=low
 
diff --git a/debian/postinst b/debian/postinst
index b5b3d74..bc2bac4 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -25,27 +25,32 @@ set -e
 
 case "$1" in
     configure)
-	if test "x$2" = "x" && ! test -e "/etc/apt/listbugs/ignore_bugs"; then
-		install -d /etc/apt/listbugs/
-		cp /usr/share/apt-listbugs/ignore_bugs \
-			/etc/apt/listbugs/ignore_bugs
-	fi
+        if test "x$2" = "x" && ! test -e "/etc/apt/listbugs/ignore_bugs"
+        then
+            install -d /etc/apt/listbugs/
+            cp /usr/share/apt-listbugs/ignore_bugs \
+                     /etc/apt/listbugs/ignore_bugs
+        fi
 
-       # removing obsolete cron configuration
-        if test -f "/etc/cron.d/apt-listbugs" && test `md5sum /etc/cron.d/apt-listbugs | cut -d' ' -f1` = "fc5efcb195e23d76f7caf27f9efe2899"; then
-          echo -n "Removing obsolete cron configuration... "
-          rm -f /etc/cron.d/apt-listbugs
-          echo "done"
+        # remove obsolete cron configuration
+        if test -f "/etc/cron.d/apt-listbugs" && \
+           test `md5sum /etc/cron.d/apt-listbugs | cut -d' ' -f1` = \
+           "fc5efcb195e23d76f7caf27f9efe2899"
+        then
+            echo -n "Removing obsolete cron configuration... "
+            rm -f /etc/cron.d/apt-listbugs
+            echo "done"
         fi
 
-       # removing obsolete index files
+        # remove obsolete index files
         for OLDFILE in /var/cache/apt-listbugs/*indices*
         do
-          if test -f "$OLDFILE"; then
-            echo -n "Removing obsolete $OLDFILE ..."
-            rm -f $OLDFILE
-            echo "done"
-          fi
+            if test -f "$OLDFILE"
+            then
+                echo -n "Removing obsolete $OLDFILE ... "
+                rm -f $OLDFILE
+                echo "done"
+            fi
         done
 
     ;;
diff --git a/debian/postrm b/debian/postrm
index a60bd03..72d9f33 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -21,16 +21,16 @@ hook=/etc/apt/apt.conf.d/10apt-listbugs
 
 case "$1" in
     purge)
-	rm -f /etc/apt/listbugs/ignore_bugs
+        rm -f /etc/apt/listbugs/ignore_bugs
         rmdir /etc/apt/listbugs 2> /dev/null || true
         rm -rf /var/cache/apt-listbugs/
         rm -rf /var/lib/apt-listbugs/
-	rm -f $hook.disabled
-	;;
+        rm -f $hook.disabled
+        ;;
     
     remove)
-	mv $hook $hook.disabled
-	;;
+        mv $hook $hook.disabled
+        ;;
 
     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
         ;;
diff --git a/debian/preinst b/debian/preinst
index 38f1551..54480ba 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -1,8 +1,10 @@
 #!/bin/sh
 
 set -e
+
 hook=/etc/apt/apt.conf.d/10apt-listbugs
-if [ -f $hook.disabled ]; then
+if test -f $hook.disabled
+then
     mv $hook.disabled $hook
 fi
 

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list