[Goswin von Brederlow]
> +# dpkg-vendor
> +#
> +# Copyright ?? 2004-2005 Scott James Remnant <[EMAIL PROTECTED]>,
> +# Copyright ?? 1999 Marcus Brinkmann <[EMAIL PROTECTED]>.

Is it really?

> +get_vendor() {
> +     if ! [ -z $DEB_VENDOR ]; then
> +             echo "$DEB_VENDOR"

You need "" around $DEB_VENDOR or this will not do what you expect.
Also, [ -n "$foo" ] is simpler than ! [ -z "$foo" ].

> +get_vendor_file() {
> +     if ! [ -z $DEB_VENDOR ]; then
> +             grep -l "^Vendor: $DEB_VENDOR$" /etc/dpkg/origins/*

> +get_build_options() {
> +     if ! [ -z $DEB_BUILD_OPTIONS ]; then
> +             echo "$DEB_BUILD_OPTIONS"

> +     if ! [ -z $parent ]; then

Same for these 3 places.
-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/

Attachment: signature.asc
Description: Digital signature

Reply via email to