Update of /cvsroot/fink/dpkg-base-files
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv32270

Modified Files:
        ChangeLog postinst.in 
Log Message:
make the file-tests actually work and not be syntax errors


Index: postinst.in
===================================================================
RCS file: /cvsroot/fink/dpkg-base-files/postinst.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- postinst.in 21 Dec 2009 06:45:45 -0000      1.5
+++ postinst.in 21 Dec 2009 17:40:01 -0000      1.6
@@ -16,8 +16,10 @@
 if [ "$2" = "configure" ]; then
     echo "Cleaning up .la files being installed:"
     for lafile in `grep '\.la$' "/sw/var/lib/dpkg/info/$pkg.list"`; do
-       echo '  [ -l "'$lafile'" ] || [ -d "'$lafile'" ] || perl -pi -e 
"s/^(dependency_libs)=.*/\1='"''"'/" "'$lafile'" || true'
-#      [ -l "$lafile" ] || [ -d "$lafile" ] || perl -pi -e 
"s/^(dependency_libs)=.*/\1=''/" "$lafile" || true
+       if [ -f "$lafile" ] && [ ! -h "$lafile" ]; then
+           echo '  perl -pi -e "s/^(dependency_libs)=.*/\1='"''"'/" 
"'$lafile'" || true'
+#          perl -pi -e "s/^(dependency_libs)=.*/\1=''/" "$lafile" || true
+       fi
     done
     echo "dry-run-only debug"
 fi

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/dpkg-base-files/ChangeLog,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- ChangeLog   21 Dec 2009 06:45:44 -0000      1.12
+++ ChangeLog   21 Dec 2009 17:40:01 -0000      1.13
@@ -1,5 +1,9 @@
 2009-12-21  Daniel Macks  <dma...@netspace.org>
 
+       * postinst.in: fixed file-tests (thanks pogma)
+
+2009-12-21  Daniel Macks  <dma...@netspace.org>
+
        * dpkg-base-files.info.in, postinst.in: dry-run of .la cleaning
 
 2009-12-19  Daniel Macks  <dma...@netspace.org>


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to