tags 416757 + patch thanks Hi,
Attached is the diff for my gpar2 0.3-2.1 NMU. Note that debhelper contains commands to do the mime and desktop stuff. Switching to those would avoid this kind of bug in the future.. -- see shy jo
diff -u gpar2-0.3/config.sub gpar2-0.3/config.sub --- gpar2-0.3/config.sub +++ gpar2-0.3/config.sub @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. -timestamp='2006-07-02' +timestamp='2006-09-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -276,6 +276,7 @@ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ + | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ @@ -284,7 +285,7 @@ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; @@ -367,7 +368,7 @@ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) @@ -909,6 +910,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -1366,6 +1371,9 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; spu-*) os=-elf ;; diff -u gpar2-0.3/debian/postrm gpar2-0.3/debian/postrm --- gpar2-0.3/debian/postrm +++ gpar2-0.3/debian/postrm @@ -20,9 +20,12 @@ case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - update-mime-database /usr/share/mime - update-desktop-database - + if [ -x "`which update-mime-database 2>/dev/null`" ]; then + update-mime-database /usr/share/mime + fi + if which update-desktop-database >/dev/null 2>&1 ; then + update-desktop-database -q + fi ;; @@ -40 +43 @@ -exit 0 +exit diff -u gpar2-0.3/debian/changelog gpar2-0.3/debian/changelog --- gpar2-0.3/debian/changelog +++ gpar2-0.3/debian/changelog @@ -1,3 +1,11 @@ +gpar2 (0.3-2.1) unstable; urgency=medium + + * NMU + * Fix postrm to test for programs before running them in purse. + Closes: #416757 + + -- Joey Hess <[EMAIL PROTECTED]> Fri, 30 Mar 2007 22:08:12 -0400 + gpar2 (0.3-2) unstable; urgency=low * Add depends on desktop-file-utils and shared-mime-info (Closes: #392462).
signature.asc
Description: Digital signature