Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-06 Thread Filippo Giunchedi
On Tue, Apr 03, 2007 at 04:28:06PM +0100, Neil Williams wrote: [...] > update-manager and netselect-apt already modify /etc/apt/sources.list > but not in postinst. netselect-apt writes sources.list to the current directory unless told so, and makes a backup before writing if the said file exists.

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-04 Thread Goswin von Brederlow
Neil Williams <[EMAIL PROTECTED]> writes: > On Tue, 03 Apr 2007 19:27:17 + > Lars Wirzenius <[EMAIL PROTECTED]> wrote: > >> On ti, 2007-04-03 at 16:28 +0100, Neil Williams wrote: >> With regards to Debian Policy, you need to read section 10.7. > > That's why I'm changing the existing method (w

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Ben Hutchings
On Tue, 2007-04-03 at 21:14 +0100, Neil Williams wrote: > What about determining the suite? You should probably use debconf to ask, though. I wouldn't be surprised to find that some Emdebian users want a stable host and an unstable target. If you still want to find the default suite, you should

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Neil Williams
On Tue, 03 Apr 2007 21:43:43 +0200 Florian Weimer <[EMAIL PROTECTED]> wrote: > * Neil Williams: > > > Finally, if this is done in postinst, presumably the changes will > > have to be removed in postrm or can dpkg be persuaded to do this > > for me? (Could I ship a sources.list file in the package

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Neil Williams
On Tue, 03 Apr 2007 19:27:17 + Lars Wirzenius <[EMAIL PROTECTED]> wrote: > On ti, 2007-04-03 at 16:28 +0100, Neil Williams wrote: > With regards to Debian Policy, you need to read section 10.7. That's why I'm changing the existing method (which does simply append data to /etc/apt/sources.list

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Florian Weimer
* Neil Williams: > Finally, if this is done in postinst, presumably the changes will have > to be removed in postrm or can dpkg be persuaded to do this for me? > (Could I ship a sources.list file in the package and move the previous > one to sources.dpkg-old?) There is /etc/apt/sources.list.d. H

Re: Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Lars Wirzenius
On ti, 2007-04-03 at 16:28 +0100, Neil Williams wrote: > To install a cross-building toolchain, apt/aptitude needs to be told > about the Emdebian [2] toolchain repository [3]. Currently, that is done > by the emsetup program in emdebian-tools but I'm wondering if it is > better done in postinst. T

Modifying /etc/apt/sources.list in postinst ; determining the suite in postinst

2007-04-03 Thread Neil Williams
Two related problems, both in the same package: emdebian-tools[0] [1]. Neither are etch related, this only affects the next release of the package as it needs to work within a chroot. (No version of emdebian-tools exists in testing.) To install a cross-building toolchain, apt/aptitude needs to be