[debian] fixup logilab-lgp cron snippets (closes #298403)

They need to deal with the package being removed but not purged.

authorJulien Cristau <julien.cristau@logilab.fr>
changesetea1583a0bf7b
branchdefault
phasepublic
hiddenno
parent revision#3a6a203e6267 [debian] update debian package for source changes (related to #298406)
child revision#c287503ac249 [pkg] 1.2.0
files modified by this revision
debian/logilab-lgp.cron.daily
debian/logilab-lgp.cron.weekly
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1432733742 -7200
# Wed May 27 15:35:42 2015 +0200
# Node ID ea1583a0bf7bfad692fdf00535e9a260766f8a78
# Parent 3a6a203e6267f51cd1748f4cf3a85802b6532aaa
[debian] fixup logilab-lgp cron snippets (closes #298403)

They need to deal with the package being removed but not purged.

diff --git a/debian/logilab-lgp.cron.daily b/debian/logilab-lgp.cron.daily
@@ -1,4 +1,8 @@
1  #!/bin/sh
2 
3 +if ! [ -x /usr/bin/lgp ]; then
4 +    exit 0
5 +fi
6 +
7  # Update image
8  /usr/bin/lgp setup -qq -c update -d all -a any
diff --git a/debian/logilab-lgp.cron.weekly b/debian/logilab-lgp.cron.weekly
@@ -1,4 +1,8 @@
9  #!/bin/sh
10 
11 +if ! [ -x /usr/bin/lgp ]; then
12 +    exit 0
13 +fi
14 +
15  # Clean caches
16  /usr/bin/lgp setup -qq -c clean -d all -a any