aboutsummaryrefslogtreecommitdiffstats
path: root/community/msttcorefonts-installer/remove-debian-stuff.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/msttcorefonts-installer/remove-debian-stuff.patch')
-rw-r--r--community/msttcorefonts-installer/remove-debian-stuff.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/msttcorefonts-installer/remove-debian-stuff.patch b/community/msttcorefonts-installer/remove-debian-stuff.patch
new file mode 100644
index 0000000000..52ea32bc25
--- /dev/null
+++ b/community/msttcorefonts-installer/remove-debian-stuff.patch
@@ -0,0 +1,33 @@
+--- a/update-ms-fonts
++++ b/update-ms-fonts
+@@ -34,7 +34,7 @@
+ mstt_exit_with_error() {
+ echo "$1"
+ echo "The fonts are NOT installed."
+- echo "Please run 'dpkg-reconfigure ttf-mscorefonts-installer' to perform the installation again"
++ echo "Please run 'update-ms-fonts' to perform the installation again"
+ exit 0 # still install the Debian package
+ }
+
+@@ -190,11 +190,6 @@
+ # Give sane names. These are nearly the same names MS uses for the
+ # Macintosh versions
+
+- mkdir -p /usr/share/doc/ttf-mscorefonts-installer $FONTDIR
+- if [ -e licen.txt ] ; then
+- mv licen.txt '/usr/share/doc/ttf-mscorefonts-installer/READ_ME!'
+- gzip -f -9 '/usr/share/doc/ttf-mscorefonts-installer/READ_ME!'
+- fi
+ for ff in $FONTFILES; do
+ for ttf in `grep $ff msfonts.info | awk '{print $4}'`; do
+ longname=`awk "/$ttf/ { print \\$2 }" msfonts.info`
+@@ -203,9 +198,6 @@
+ done
+ done
+
+- # Make a note of what we installed so we can uninstall it later
+- awk '{print $2}' msfonts.info > /var/lib/msttcorefonts/ms-fonts
+- awk '{print $4}' msfonts.info >> /var/lib/msttcorefonts/ms-fonts
+ fi
+
+ cd /