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

Re: debian-cd and security mirror



On Thu, Jun 27, 2002 at 07:53:22PM +0200, Petter Reinholdtsen wrote:

> [Carlos Barros]
> >         $file = ( -e "$mirror/$filename" ) ? "$mirror/$filename" :
> >                 (-e "$nonus/$filename") ? "$nonus/$filename" :
> >                 "$security/$filename";
> 
> Will this make the build process choose security fixes first or last?
> It seem to me it will choose a security package if the package in
> question is missing from the mirror or from non-us.  Is this what you
> want?

I think that no ordering is done here, just searching for the file. In this
case first check $mirror if not, check $nonus if not $security.
 
> Is this the patch you suggest?

Yes it is. I built the images but didn't test them. The security section was
included but I don't know if the apt-cdrom recognice it.

> Index: mirror_check
> ===================================================================
> RCS file: /var/lib/cvs/skolelinux/src/debian-cd/tools/mirror_check,v
> retrieving revision 1.1.1.1
> diff -u -3 -p -u -r1.1.1.1 mirror_check
> --- mirror_check	26 Aug 2001 11:45:50 -0000	1.1.1.1
> +++ mirror_check	27 Jun 2002 17:53:03 -0000
> @@ -4,6 +4,7 @@ use Digest::MD5;
>  
>  my $mirror = shift || $ENV{'MIRROR'};
>  my $nonus = shift || $ENV{'NONUS'};
> +my $security = shift || $ENV{'SECURITY'};
>  my ($p, $filename, $size, $md5sum, $file) = ('', '', 0, '', '');
>  
>  my $ok = 1;
> @@ -21,7 +22,8 @@ while (defined($_ = <>)) {
>  	next if not $p;
>  	
>  	$file = ( -e "$mirror/$filename" ) ? "$mirror/$filename" :
> -	            "$nonus/$filename";
> +		( -e "$nonus/$filename" ) ? "$nonus/$filename" :
> +		"$security/$filename";
>  	
>  	# Check if the file exists
>  	if (! -e $file) {

-- 
Carlos Barros.


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



Reply to: