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

Re: Bug#148073: apt-cdrom cannot be made to not modify sources.list, and damages your system if you try



On 24 May 2002, Jeff Licquia wrote:

> I'm wanting to add a CD-ROM from a program to manage sources.list. 
> Obviously, I have to add an entry to sources.list in order for the CD to
> be useful, but I want to have control over that process.  However, I
> must use apt-cdrom to do the actual adding, because of the index files. 
> But apt-cdrom always munges sources.list.

Er, Ok...
 
> What's worse is that the obvious way to cause it to not munge
> sources.list damages your system.  If you pass "-o
> Dir::Etc::sourcelist=/dev/null", apt-cdrom will happily replace the
> character device node /dev/null with a text file containing the
> sources.list line for the CD.

How is this the obvious way? Don't do that :P

> So, for now, I'm passing "-o Dir::Etc::sourcelist=<temp_path>/junk" and
> removing the junk file.  This is suboptimal, and arguably the behavior

I can't imagine why you would want to run apt-cdrom and discard the
source.list entires. It makes no sense, all the work apt-cdrom does will
be undone by apt-get if the entries are not preserved.

Jason


-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: