~ubuntu-branches/ubuntu/intrepid/xml-core/intrepid

« back to all changes in this revision

Viewing changes to debian/xml-core.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale), Daniel Leidert
  • Date: 2007-04-16 19:17:50 UTC
  • Revision ID: james.westby@ubuntu.com-20070416191750-5mr9q5f50k3j6hry
Tags: 0.11
[ Daniel Leidert ]
debian/xml-core.postrm: Only try to remove /var/lib/xml-core, if it
exists (closes: #358364). Thanks to Kurt Roecks, who catched this issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
set -e
8
8
 
9
9
## ----------------------------------------------------------------------
10
 
if [ "$1" = "install" -o "$1" = "upgrade" ]
11
 
then
12
 
 
13
 
    ## ------------------------------------------------------------------
14
 
    ## create /var/lib/xml-core
15
 
    if [ ! -d /var/lib/xml-core ]
16
 
    then
17
 
        mkdir /var/lib/xml-core 2>/dev/null
18
 
    fi
19
 
 
20
 
    ## ------------------------------------------------------------------
21
 
    ## create /etc/xml
22
 
    if [ ! -d /etc/xml ]
23
 
    then
24
 
        mkdir /etc/xml 2>/dev/null
25
 
    fi
26
 
 
27
 
fi
28
 
 
29
 
## ----------------------------------------------------------------------
30
10
if [ "$1" = "install" ]
31
11
then
32
12