A minor patch: -export aptopt= -> +export -n aptopt

Michael Tautschnig tautschn at model.in.tum.de
Tue May 23 10:30:39 CEST 2006


>   That is against 2.10. I haven't tested it.
> 
> --- /usr/lib/fai/updatebase     2006-04-03 16:12:38.000000000 +0300
> +++ updatebase  2006-05-22 01:58:09.000000000 +0300
> @@ -24,7 +24,7 @@
>  $ROOTCMD dpkg -C
>  [ $? -ne 0 ] && yes '' | $ROOTCMD dpkg --configure -a
>  # using the above value, causes an error: "dpkg need action"
> -export aptopt=
> +export -n aptopt
>  $ROOTCMD apt-get $aptopt -f -y dist-upgrade </dev/null
>  # update dpkg info which packages are available
>  tmp=$($ROOTCMD mktemp)
>

Looking at updatebase it makes me ask:
- why is $aptopt exported at all?
- why is it used in line 29, if the value is unset before?

Could somebody (Thomas :-) ) explain that to me?

Thanks,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20060523/d9384c2f/attachment.bin 


More information about the linux-fai-devel mailing list