[Simple-cdd-devel] Bug#632331: .udebs or .packages files which are empty or all commented out cause install to fail

Vagrant Cascadian vagrant at debian.org
Thu Apr 10 23:40:14 UTC 2014


Control: tags 632331 pending

On Fri, Jul 01, 2011 at 04:03:20PM +0200, Enrico Zini wrote:
>         echo "Queuing packages for profile: $p"
>         wanted_packages="$(egrep -v ^# $p.packages)"
>   [...]
> 
> Egrep exits with 1 in case no lines are found, and since it's running
> under set -e, this terminates the script.
> 
> A possible fix is to switch to sed instead of grep:
> 
> 	wanted_packages="$(sed -n '/^[^#]/p')"
> 	test -z "$wanted_packages" || anna-install $wanted_packages || true

Implemented this suggestion in bzr some time ago, haven't yet uploaded a new
package...

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20140410/812fd70a/attachment.sig>


More information about the Simple-cdd-devel mailing list