[Pkg-lyx-devel] svn commit: r390 - in /lyx/trunk/debian: changelog lyx-common.postinst

pelle at users.alioth.debian.org pelle at users.alioth.debian.org
Thu Oct 25 21:47:48 UTC 2007


Author: pelle
Date: Thu Oct 25 21:47:48 2007
New Revision: 390

URL: http://svn.debian.org/wsvn/pkg-lyx/?sc=1&rev=390
Log:
* Simplify file removal code in lyx-common.postinst.

Modified:
    lyx/trunk/debian/changelog
    lyx/trunk/debian/lyx-common.postinst

Modified: lyx/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-lyx/lyx/trunk/debian/changelog?rev=390&op=diff
==============================================================================
--- lyx/trunk/debian/changelog (original)
+++ lyx/trunk/debian/changelog Thu Oct 25 21:47:48 2007
@@ -10,8 +10,9 @@
   * Don't replace config.guess (not needed), and clean up debian/rules a
     bit.
   * Check if texhash exists before running it in postinst.
-
- -- Per Olofsson <pelle at debian.org>  Thu, 25 Oct 2007 23:46:30 +0200
+  * Simplify file removal code in lyx-common.postinst.
+
+ -- Per Olofsson <pelle at debian.org>  Thu, 25 Oct 2007 23:47:29 +0200
 
 lyx (1.5.1-2) unstable; urgency=low
 

Modified: lyx/trunk/debian/lyx-common.postinst
URL: http://svn.debian.org/wsvn/pkg-lyx/lyx/trunk/debian/lyx-common.postinst?rev=390&op=diff
==============================================================================
--- lyx/trunk/debian/lyx-common.postinst (original)
+++ lyx/trunk/debian/lyx-common.postinst Thu Oct 25 21:47:48 2007
@@ -1,18 +1,11 @@
 #!/bin/sh -e
-
-remove_file()
-{
-	if [ -f "$1" ]; then
-		rm "$1"
-	fi
-}
 
 if [ "$1" = configure ] && [ -x "`which texhash 2>/dev/null`" ]; then
 	texhash
 fi
 
-remove_file /usr/share/lyx/lyxrc.defaults
-remove_file /usr/share/lyx/packages.lst
-remove_file /usr/share/lyx/textclass.lst
+rm -f /usr/share/lyx/lyxrc.defaults
+rm -f /usr/share/lyx/packages.lst
+rm -f /usr/share/lyx/textclass.lst
 
 #DEBHELPER#




More information about the Pkg-lyx-devel mailing list