X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fpreinst.template;h=e7b00520eac4a3cbbaf4aee7d4f12f9661e7786a;hb=228cb508edfdc501235ffcaf4f0ea1803e3f55a4;hp=fba33ace3c764199034fc3f728d9264395335f78;hpb=c9fd9ffa2911e702550d3c7cc2d84b8316cdf549;p=clsql.git diff --git a/debian/preinst.template b/debian/preinst.template index fba33ac..e7b0052 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/$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\.]* ;; *)