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

Bug#348509: add support for local archives

On Tue, 17 Jan 2006, Joey Hess wrote:

Timo Aaltonen wrote:
It would be nice to have support for local archives in apt-setup. Here's a
simple patch for that. Currently it supports only one repository because
it doesn't (well, I don't) know how to parse the string into multiple
entries. Maybe something like a ';' could be the delimiter?

Well, maybe. Another way to do it would be to make it walk over
apt-setup/local[0-9] and add the ones it finds.

Yes, why not.

Seems like a pretty good patch although we'll also have to document it
in the installation manual.

I could do that also, maybe section B.4.6 is the obvious place?

(I must say, that the manual has come a _long_ way since last spring when I started playing around with d-i :) And thanks for ditching base-config!)

What about apt key issues though, a local repo will not be signed by the
Debian archive key, so apt will refuse to install packages from it
unless a key is also somehow provided.

That's true, I'll look into it although at the moment this is a bit unfamiliar business to me. But that's what documentation is for..

echo >> $file
if [ -n $local ]; then

Probably the echo should go inside the if block.

yes, the next version will be better.

+Template: apt-setup/local
+Type: string
+_Description: Local archive(s) to be added in sources.list

No need to localise this since it doesn't ask the question.

Ok, I was under the impression that Templates are needed for all debconf settings..

I'll make another patch tomorrow.


Reply to: