fai and backports.org
P.S.S.Camp
P.S.S.Camp at kent.ac.uk
Thu May 11 18:08:11 CEST 2006
This patches the package checking to allow apt packages in the
form of packagename/distro allowing easier use of things like
backports.org
eg. (providing a correct source and apt/preferences file, but you don't
need to pin each package)
package_config/MIRROR_SERVICE
PACKAGES install
rsync/sarge-backports
yaird/sarge-backports
Phill.
--- /usr/sbin/install_packages 2006-04-20 13:16:33.000000000 +0100
+++ /usr/lib/fai/nfsroot/usr/sbin/install_packages 2006-05-11 16:57:27.000000000 +0100
@@ -381,7 +381,7 @@
# simulate APTs and aptitudes understanding of "special" package names
# suffixed by -, +
- elsif ( $pack =~ /^(.+)[_=+-]$/ and $cache->exists($1)) {
+ elsif ( $pack =~ /^([^\/]+)([_=+-]|\/.+)$/ and $cache->exists($1)) {
if (defined ($cache->{$1}{VersionList})) {
push @known, $pack;
--
Senior Computer Science Computing Officer
University Of Kent At Canterbury
Computer Science Systems <http://www.cs.kent.ac.uk/systems/>
The Mirror Service <http://www.mirrorservice.org/>
National Open Development Environment <http://node.gov.uk/>
-------------- next part --------------
--- /usr/sbin/install_packages 2006-04-20 13:16:33.000000000 +0100
+++ /usr/lib/fai/nfsroot/usr/sbin/install_packages 2006-05-11 16:57:27.000000000 +0100
@@ -381,7 +381,7 @@
# simulate APTs and aptitudes understanding of "special" package names
# suffixed by -, +
- elsif ( $pack =~ /^(.+)[_=+-]$/ and $cache->exists($1)) {
+ elsif ( $pack =~ /^([^\/]+)([_=+-]|\/.+)$/ and $cache->exists($1)) {
if (defined ($cache->{$1}{VersionList})) {
push @known, $pack;
More information about the linux-fai
mailing list