From owner-freebsd-arch@FreeBSD.ORG Wed Sep 3 07:39:54 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C6BE16A4BF for ; Wed, 3 Sep 2003 07:39:54 -0700 (PDT) Received: from mail.yadt.co.uk (yadt.demon.co.uk [158.152.4.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C8B743FE3 for ; Wed, 3 Sep 2003 07:39:51 -0700 (PDT) (envelope-from davidt@yadt.co.uk) Received: (qmail 81645 invoked from network); 3 Sep 2003 14:39:49 -0000 Received: from unknown (HELO mail.gattaca.yadt.co.uk) (@10.0.0.2) by yadt.demon.co.uk with SMTP; 3 Sep 2003 14:39:49 -0000 Received: (qmail 77169 invoked by uid 1000); 3 Sep 2003 14:39:48 -0000 Date: Wed, 3 Sep 2003 15:39:48 +0100 From: David Taylor To: freebsd-arch@freebsd.org Message-ID: <20030903143948.GA61515@gattaca.yadt.co.uk> Mail-Followup-To: freebsd-arch@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: (proposal) new flag for pkg_delete X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 14:39:54 -0000 (I hope this is the right list) Currently, pkg_delete's manpage states: -f Force removal of the package, even if a dependency is recorded or the deinstall or require script fails. It fails to mention that if -f is specified it will also delete any files where the MD5 checksum is incorrect. I have now been repeatedly bitten by portupgrade wiping my configuration information because it specifies -f (as it must, in order to remove packages which are still 'in use' by other packages). So, I have a proposal: Create two seperate flags (open to ideas for what to call them, say '-F' and '-m'), which work as follows: -F works as '-f' is currently documented. -m ignores MD5 checksums Then change -f: -f backwards compatability (activates -F and -m) Then portupgrade could be changed to use '-F' instead of '-f' (or whatever it is eventually called), and should stop deleting config files. Any comments? -- David Taylor davidt@yadt.co.uk "The future just ain't what it used to be"