------------------------------------------------------------
revno: 1998
committer: Rene Engelhard <[email protected]>
branch nick: experimental
timestamp: Wed 2010-05-26 01:36:57 +0200
message:
  debian/broffice.org.postinst.in: guard against  being empty
modified:
  broffice.org.postinst.in
  changelog
=== modified file 'broffice.org.postinst.in'
--- a/broffice.org.postinst.in  2010-05-04 00:59:49 +0000
+++ b/broffice.org.postinst.in  2010-05-25 23:36:57 +0000
@@ -8,8 +8,10 @@
 #INCLUDE_SHELL_LIB#
 
 case "$1" in configure)
-        if dpkg --compare-versions $2 lt 1:3.2.1~; then
-                dpkg-divert --package $THIS_PACKAGE --remove --rename --divert 
/@OOBRANDDIR@/program/about.bmp.ooo /@OOBRANDDIR@/program/about.bmp
+        if [ -n "$2" ]; then
+               if dpkg --compare-versions $2 lt 1:3.2.1~; then
+                       dpkg-divert --package $THIS_PACKAGE --remove --rename 
--divert /@OOBRANDDIR@/program/about.bmp.ooo /@OOBRANDDIR@/program/about.bmp
+               fi
         fi
 esac
 

=== modified file 'changelog'
--- a/changelog 2010-05-25 17:11:03 +0000
+++ b/changelog 2010-05-25 23:36:57 +0000
@@ -25,8 +25,9 @@
     - temporarily use "split" tarballs again
   * debian/rules, debian/po/*, debian/control*in, debian/*.lintian*:
     remove debconf error when OOo is running again (closes: #565692)
+  * debian/broffice.org.postinst.in: guard against $2 being empty 
 
- -- Rene Engelhard <[email protected]>  Tue, 25 May 2010 18:03:28 +0200
+ -- Rene Engelhard <[email protected]>  Wed, 26 May 2010 01:33:55 +0200
 
 openoffice.org (1:3.2.1~rc1-2) experimental; urgency=low
 

Reply via email to