From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 14 Jan 2003 21:37:19 +0300 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20030114183719.GA30550@ungrund> Mail-Followup-To: devel@altlinux.ru References: <20030114170909.GA21695@ungrund> <20030114202055.57c64b6a.vsu@altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20030114202055.57c64b6a.vsu@altlinux.ru> Subject: [devel] Re: update-alternatives links Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Jan 14, 2003 at 08:20:55PM +0300, Sergey Vlasov wrote: > rpm -q --scripts -p ~/RPM/RPMS/i686/elinks-0.4.1-alt1cvs20030114.i686.rpm > > ? > > Нельзя просто удалять альтернативу в %postun - нужно проверять на > обновление: > > [ "$1" = 0 ] & /usr/sbin/update-alternatives --remove ... Дошло. И как без этого пропустили в sisyphus? :) Вот так -- нормально? %post /usr/sbin/update-alternatives \ --install %_bindir/links links %_bindir/%name 10 \ --slave %_man1dir/links.1.gz links.1.gz %_man1dir/%name.1.gz %update_menus %triggerpostun -- links /usr/sbin/update-alternatives \ --install %_bindir/links links %_bindir/%name 10 \ --slave %_man1dir/links.1.gz links.1.gz %_man1dir/%name.1.gz %postun [ $1 = 0 ] || exit 0 /usr/sbin/update-alternatives \ --remove links %_bindir/%name %clean_menus -- WBR, Alexey Tourbin BIOZAK Ltd., Russia --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+JFjffBKgtDjnu0YRAopMAJ9q4u9rijkVOBOnayTh8aPWPOslNACfUkWF N60zAgPzn34UayleUeZcoHs= =/ny/ -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--