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

Re: yacs dependency



Le Tue, Aug 24, 1999 at 10:16:32PM +0200, Filip Van Raemdonck écrivait:
> Raphaël, feel free to add this -or not- to the tarball.

After reading the patch, it seems that you made some mistakes :

> --- yacs/tools/scanpackages	Thu Jul 29 17:54:30 1999
> +++ yacs.slink/tools/scanpackages	Tue Aug 24 20:12:20 1999
[...]
>  done
> +
> +if [ -n "$NONUS" -a "x"$CODENAME = "xslink" ]; then
> +    cp $NONUS/dists/$CODENAME/non-US/binary-$ARCH/Release \
> +	dists/$CODENAME/non-US/binary-$ARCH/
> +    grep -v ^X-Medium $PREFIX.Packages-non-US \
> +	>dists/$CODENAME/non-US/binary-$ARCH/Packages
> +    grep -v ^X-Medium $PREFIX.Packages-non-US | gzip --best \
> +	>dists/$CODENAME/non-US/binary-$ARCH/Packages.gz
> +    for i in $TDIR/$CODENAME-$ARCH/*.packages; do
> +	dir=${i%%.packages}
> +	n=${dir##$TDIR/$CODENAME-$ARCH/}
> +	if [ $n -le $NUM ]; then
> +	    cat $dir.Packages-non-US \
> +		>>dists/$CODENAME/non-US/binary-$ARCH/Packages.cd
> +	    cat $dir.Packages-non-US | gzip --best \
> +		>>dists/$CODENAME/non-US/binary-$ARCH/Packages.cd.gz
> +	fi
> +    done
> +fi
> +
>  fi
>  
>  # Creates the temp Packages-$SECT files
> @@ -68,12 +88,12 @@
>  
>  	# Look at the ugly hack for the main special case ...
>  
> -	dpkg-scanpackages -m "`cat .disk/info`" \
> +	dpkg-scanpackages \

You shouldn't remove the "-m" option, instead you should install
dpkg-multicd which will divert dpkg-scanpackages and install the good 
one. I'll add this to the dependencies ...

>  	          dists/$CODENAME/$SECT/binary-$ARCH \
> -                  $MIRROR/indices/override.$CODENAME.`t=${SECT}.; echo -n ${t##main.}`gz \
> +                  $MIRROR/indices/override.$CODENAME`t=.${SECT}; echo -n ${t##.main}` \

The override file for slink is not splitted into sections .... and you
need to scan only one dir.

Cheers,
-- 
Raphaël Hertzog -=- http://ntux.u-strasbg.fr/~raphael/
<pub> CDs Debian : http://ntux.u-strasbg.fr/~raphael/debian/#cd </pub>


Reply to: