[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#362553: apt: hiddeous syntax award for -oDPkg::Options::=

On Sun, Apr 16, 2006 at 08:06:56PM +0200, Goswin von Brederlow wrote:
> Justin Pryzby <justinpryzby@users.sourceforge.net> writes:
> > Package: apt
> > Version:
> >
> > Apt wins the hiddeous syntax award for the day:
> >
> > apt-get -oDPkg::Options::=--force-overwrite install {debianutils,passwd}/stable
> >
> > It doesn't work without the second pair of double-colons, which I
> > don't understand, haven't seen used anywhere else, thus undocumented,
> > is unintuitive, and well, ugly.
> Why do you need that, and for a stable package?
This was one of many attempts to implement piuparts-like upgrade
testing; the problem here was coreutils, I think.

I'm now using something different; the intent is to revert as fully as
possible: to the intial state of the sarge debootstrap:

        dpkg --get-selections |sed -e 's/\t.*/ purge/' |
                dpkg --set-selections
        sed -e 's/\t.*/ install/' stable-versions |dpkg --set-selections
        apt-get --force-yes -qqo Dir::Etc::Preferences=<(echo Package: \*; echo
Pin: release a=stable; echo Pin-Priority: 1100) dselect-upgrade

> Please file bugs about conflicting files.
I did (not coreutils, though; exim and proftpd-common and one other.
That isn't how I discovered them, though).


Reply to: