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

Re: autoup.sh & considerations on bail-out scripts



Craig Sanders wrote:
> On Sat, 14 Feb 1998, Hamish Moffatt wrote:

> > I thought it used get-selections to work out which dev packages are installed?
> 
> yep, you're right.  i'd forgotten about that.
>
> this may be a problem.  it has to remove all the -dev etc packages in order
> to install libc5 and libc6....it can't install the new dpkg until that is
> done. 

I haven't looked at the autoup script yet, so I may be way off base, but
I wonder if you could hardcode a list of -dev packages and use that,
and tell dpkg to remove all potential -dev packages.

Removing a nonexistent package causes dpkg to print a warning, but
it doesn't count that as an error:

# dpkg --remove foo-dev
dpkg - warning: ignoring request to remove foo-dev which isn't installed.
# echo $?
0

You could grep for this warning and subtract those packages from the
hardcoded list to get a list of packages that were installed, if
you need such a list.

This might be more work than is worthwhile, but it's a way to cope without
having --get-selections.

Richard Braakman


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: