
On Tue, Feb 28, 2012 at 11:34:32AM +1100, Trent W. Buck wrote:
script just runs "rm -fv /usr/share/applnk/calibre*.desktop /usr/local/share/applications/calibre*.desktop" after every upgrade).
If you're on Debian (as I recall), you can and should use dpkg-divert instead, so dpkg will simply remember that you hate that non-conffile. Like this:
i'm not using the debian calibre packages. they've probably got this crap sorted out. instead, i'm foolishly using the upstream calibre binary. when i started using it, the debian calibre package was grotesquely ancient and out of date. now it seems to be within a version or two of upstream, so i should probably switch back (the author, Kovid Goyal, knows his stuff WRT ebook formats but is as clueless about packaging and system integration as he is about GUIs[1], smtp, security and pretty much everything else he thinks he's an expert on). instead i use the following update-calibre.sh script to install/upgrade calibre in /opt/calibre: ---cut here--- #! /bin/bash cd /opt DATE=$(stat -c '%y' calibre/bin/calibre | awk '{print $1}') mv calibre "calibre.$DATE" python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main(install_dir='/opt')" touch -r calibre/bin/calibre calibre rm -fv /usr/share/applnk/calibre*.desktop /usr/local/share/applications/calibre*.desktop ---cut here--- [1] have you seen the calibre GUI? NIH-syndrome on seriously bad drugs (datura or some other deleriant, i reckon). craig -- craig sanders <cas@taz.net.au> BOFH excuse #105: UPS interrupted the server's power