diff options
Diffstat (limited to 'net-p2p/bittorrent/bittorrent-3.2.1.ebuild')
-rw-r--r-- | net-p2p/bittorrent/bittorrent-3.2.1.ebuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/net-p2p/bittorrent/bittorrent-3.2.1.ebuild b/net-p2p/bittorrent/bittorrent-3.2.1.ebuild index b328fc9b9520..565666418f32 100644 --- a/net-p2p/bittorrent/bittorrent-3.2.1.ebuild +++ b/net-p2p/bittorrent/bittorrent-3.2.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/bittorrent/bittorrent-3.2.1.ebuild,v 1.3 2003/07/13 20:28:38 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/bittorrent/bittorrent-3.2.1.ebuild,v 1.4 2003/09/08 07:06:22 msterret Exp $ inherit distutils @@ -26,14 +26,13 @@ mydoc="FAQ.txt README.txt LICENSE.txt" pkg_postinst() { MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\"" - if [ -n "`grep 'application/x-bittorrent' /etc/mailcap`" ]; then - # replace bittorrent entry if it already exists + if [ -n "`grep 'application/x-bittorrent' /etc/mailcap`" ]; then + # replace bittorrent entry if it already exists einfo "updating bittorrent mime info" - sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," /etc/mailcap - else - # add bittorrent entry if it doesn't exist - einfo "adding bittorrent mime info" + sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," /etc/mailcap + else + # add bittorrent entry if it doesn't exist + einfo "adding bittorrent mime info" echo "${MAILCAP_STRING}" >> /etc/mailcap fi } - |