From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1180 invoked by uid 1002); 3 Jan 2003 15:16:14 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 30512 invoked from network); 3 Jan 2003 15:16:14 -0000 Date: Fri, 3 Jan 2003 16:14:22 +0100 From: Maik Schreiber To: gentoo-dev@gentoo.org Message-ID: <20030103151421.GA1542@wolverine.hh.iq-computing.de> Mail-Followup-To: gentoo-dev@gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.4i Subject: [gentoo-dev] [HOWTO] Fix broken COUNTERs X-Archives-Salt: 331dad1a-e4c9-41c9-ae35-aef57f393bfa X-Archives-Hash: c485aba210ec429b805bc52d10febcd8 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For some funny (yet unknown) reason, the COUNTER files in /var/db/pkg on on= e of my boxes were messed up. This resulted in Portage wanted to uninstall package versions that just have been installed, or generally vers= ions that are newer than others. To fix this, I've written a little script which you can find at http://cvs.= gentoo.org/~blizzy/fix-db.pl It simply recalculates all COUNTERs from other existing /var/db/pkg info (i= e. CONTENTS). WARNING: Make sure to backup your /var/db/pkg/* first! You don't need to backup /var/cache/edb/counter (which it also recreates), = it can be deleted safely. (Someone please forward this message to gentoo-user. Thanks.) --=20 Maik Schreiber, Gentoo Linux Developer * http://www.gentoo.org mailto:blizzy@gentoo.org GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0x1F1= 1D713 =20 Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713 --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+FajNVkAAbx8R1xMRAmrwAJwMhLXhDA/gNqt1MGjDx6UAa1gUJACaAoYW Do6wCg+1FVIvs0O042clctw= =5n5D -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--