X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpreinst.template;h=b8f6c195b2d0a1f7b1d85319855162a2d80b6b5a;hb=a24d3ebbdbb002b32134e369663932174f278e4e;hp=fba33ace3c764199034fc3f728d9264395335f78;hpb=1c85d4d2cf54f769d9c410c847b648f6c521e5ce;p=clsql.git diff --git a/debian/preinst.template b/debian/preinst.template index fba33ac..b8f6c19 100755 --- a/debian/preinst.template +++ b/debian/preinst.template @@ -5,11 +5,12 @@ # Copyright (c) 2002 Kevin M. Rosenberg pkg=%% +dir=/usr/share/common-lisp-source/source/$pkg case "$1" in install|upgrade|abort-upgrade) - rm -rf /usr/share/common-lisp-source/${pkg} - rm -rf /usr/share/common-lisp-source/${pkg}-[0-9\.]+ + test -h $dir && rm $dir + rm -rf ${dir}-[0-9\.]+ ;; *)