Delete downloaded CSVs in postrm
This commit is contained in:
parent
6cd1de8ecc
commit
78eeb6eccd
2 changed files with 5 additions and 3 deletions
|
|
@ -20,8 +20,6 @@ GEOLITE_ASNUM_IPV6_CSV_FILE="GeoIPASNum2v6.zip"
|
||||||
|
|
||||||
GEOIP_CSV_DIR="/usr/share/doc/geoip-database-contrib/csv/"
|
GEOIP_CSV_DIR="/usr/share/doc/geoip-database-contrib/csv/"
|
||||||
|
|
||||||
FAILED=0
|
|
||||||
|
|
||||||
mkdir -p $GEOIP_CSV_DIR
|
mkdir -p $GEOIP_CSV_DIR
|
||||||
|
|
||||||
for url in \
|
for url in \
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,14 @@ EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu $UPSTREAM multiverse'
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
sed "/exit 0/d" -i geoip-database-contrib_update
|
sed "/^exit 0/d" -i geoip-database-contrib_update
|
||||||
cat $DATA/geoip-database-contrib_update.shim >> geoip-database-contrib_update
|
cat $DATA/geoip-database-contrib_update.shim >> geoip-database-contrib_update
|
||||||
cat $DATA/copyright.shim >> debian/copyright
|
cat $DATA/copyright.shim >> debian/copyright
|
||||||
|
|
||||||
|
sed '/rm -f \/usr\/share\/GeoIP\/GeoLiteCityv6\.dat/a\
|
||||||
|
rm -rf /usr/share/doc/geoip-database-contrib/csv
|
||||||
|
' -i debian/postrm
|
||||||
|
|
||||||
changelog 'Imported into Trisquel #13927'
|
changelog 'Imported into Trisquel #13927'
|
||||||
|
|
||||||
compile
|
compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue