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

Bug#348509: add support for local archives

Package: apt-setup
Version: 0.5

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?

set -e

. /usr/share/debconf/confmodule


db_get apt-setup/local

echo >> $file
if [ -n $local ]; then
        cat >> $file <<EOF
## The local repository

--- debian/apt-mirror-setup.templates.orig 2006-01-17 14:13:33.531371000 +0200 +++ debian/apt-mirror-setup.templates 2006-01-17 14:18:25.212208000 +0200
@@ -35,3 +35,8 @@
network, or with the mirror. You can choose to retry the download, select
  a different mirror, or ignore the problem and continue without all the
  packages from this mirror.
+Template: apt-setup/local
+Type: string
+_Description: Local archive(s) to be added in sources.list

Reply to: