~ubuntu-branches/ubuntu/utopic/apt-build/utopic

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Package Import Robot
  • Author(s): Dominique Lasserre
  • Date: 2012-04-11 23:13:55 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20120411231355-aqshq0pbkcydr8ne
Tags: 0.12.43
* QA upload.
* Upload to unstable
* Patch from Kumar Appaiah: Fix compiler links with host names. Closes:
  #502377
* Patch from Kumar Appaiah: Add gfortran support. Closes: #502379

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
if [ "$1" = purge ]; then
6
 
    rm -f /etc/apt/apt-build.conf
 
5
if [ "$1" = purge ] ; then
 
6
  rm -f /etc/apt/apt-build.conf
 
7
  
 
8
  # prepare APT and apt-build information
 
9
  eval $(apt-config shell etcdir Dir::Etc)
 
10
  eval $(apt-config shell sourceslist Dir::Etc::sourcelist)
 
11
  eval $(apt-config shell sourcesparts Dir::Etc::sourceparts)
 
12
  sourceslist=/"$etcdir""$sourceslist"
 
13
  sourcesparts=/"$etcdir""$sourcesparts"
 
14
  aptbuildsource="$sourcesparts"/apt-build.list
 
15
  
 
16
  ## remove repository directory if it is empty
 
17
  #db_get apt-build/repository_dir
 
18
  #repository_dir="$RET"
 
19
  #if [ $(zcat "$repository_dir"/Packages.gz | wc -l) -eq 0 ] ; then
 
20
  #  rm -rf "$repository_dir"
 
21
  #fi
 
22
  #
 
23
  ## remove build directory if it is empty
 
24
  #db_get apt-build/build_dir
 
25
  #build_dir="$RET"
 
26
  #if [ -d "$build_dir" ] && [ ! $(ls -A "$build_dir") ] ; then
 
27
  #  rm -rf "$build_dir"
 
28
  #fi
 
29
  
 
30
  # remove apt-build.list resource file
 
31
  if [ -f "$aptbuildsource" ] ; then
 
32
    rm -f "$aptbuildsource"
 
33
  fi
 
34
fi
 
35
 
 
36
# remove obsolete config file from apt-build <= 0.12.37
 
37
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null ; then
 
38
  dpkg-maintscript-helper rm_conffile /etc/apt/sources.list.d/apt-build -- "$@"
7
39
fi
8
40
 
9
41
#DEBHELPER#