[prev in list] [next in list] [prev in thread] [next in thread]
List: debian-devel
Subject: Re: Modifying /etc/apt/sources.list in postinst ; determining the
From: Neil Williams <linux () codehelp ! co ! uk>
Date: 2007-04-03 20:07:09
Message-ID: 20070403210709.d48ae724.linux () codehelp ! co ! uk
[Download RAW message or body]
On Tue, 03 Apr 2007 19:27:17 +0000
Lars Wirzenius <liw@liw.iki.fi> 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). The previous hack isn't good.
:-)
However, determining the suite from within postinst is my main issue at
the moment.
Is it safe to use `apt-cache policy` ?
> Basically, since sources.list is a configuration file belonging to
> apt, your package may only edit it in postinst if apt provides
> commands for doing so. I don't think apt does that, but I could be
> wrong.
It does have a method: /etc/apt/sources.list.d/
I'm going to put a sources file in there which can be purged when the
package is purged.
> With regards to the life of a sysadmin, don't do it.
I can't see sysadmins having to manage many cross-building buildd
machines but I will provide a README.Debian. The Emdebian repository
only stores the cross-building toolchains.
> Provide a README.Debian that tells what needs to be done, and
> possibly provide a command to do it easily.
The package is unusable without the added sources. Providing a
userspace command doesn't ensure that the repository is removed from
the sources list when the package is purged.
The modified package is currently in the Emdebian repository, v0.1.4.
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
[Attachment #3 (application/pgp-signature)]
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic