Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian packaging: fix removed diversion (take II; followup 8b054e6; r…
…everts 5f310a7)
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
#!/bin/sh | |||
|
|||
set -e | |||
|
|||
if [ "$1" = "install" -o "$1" = "upgrade" ]; then | |||
# Fix bad diversions | |||
div=$(dpkg-divert --listpackage /usr/bin/qgis) | |||
if [ -n "$div" -a "$div" = qgis-plugin-grass ]; then | |||
for i in /usr/bin/qgis /usr/bin/qbrowser; do | |||
if [ -e $i ] && ! [ -e $i.undiverted ]; then | |||
mv $i $i.undiverted | |||
fi | |||
dpkg-divert --package qgis-plugin-grass --remove --rename --divert $i.bin $i | |||
if [ -e $i.undiverted ]; then | |||
mv $i.undiverted $i | |||
fi | |||
done | |||
fi | |||
fi | |||
|
|||
#DEBHELPER# | |||
|
|||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters