[PATCH 2 of 4] Only uninstall a list if it has been installed

Wald Commits scm-commit at wald.intevation.org
Mon Aug 4 17:57:17 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1407157593 -7200
# Node ID 4dfb6f543a05100d8bb6d87f7470c055de089678
# Parent  9bab4fc3a1fe318dd37808f61ba1ed486a380bb8
Only uninstall a list if it has been installed

diff -r 9bab4fc3a1fe -r 4dfb6f543a05 packaging/linux-installer.inc.in
--- a/packaging/linux-installer.inc.in	Mon Aug 04 15:06:16 2014 +0200
+++ b/packaging/linux-installer.inc.in	Mon Aug 04 15:06:33 2014 +0200
@@ -256,7 +256,7 @@
 deinstall_certs()
 {
   local cinst="${oldinstcfg[PREFIX]}/bin/cinst"
-  local certlist=`ls 2>/dev/null -1  ${instdata_path}/list-*.txt | sort -nr | head -n 1`
+  local certlist=`ls 2>/dev/null -1  ${instdata_path}/list-installed.txt`
 
   getxt "Uninstalling certificates ...\n"
 


More information about the Trustbridge-commits mailing list