diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-06 15:41:48 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-06 15:41:48 +0000 |
commit | 7a3ba36c16a5e67de7b78d30ab621ef945d49916 (patch) | |
tree | 745b8310cc94bb508ab1cc33b77408faef2af7d6 /usr.sbin | |
parent | 5adb4335e95fca4842a31e7a1fe5154cf25b0cf5 (diff) |
let pkg_create generate the correct description if the HOMEPAGE is empty.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 0bb11685fbe..8712e2dbc3d 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.94 2007/05/05 11:18:18 espie Exp $ +# $OpenBSD: pkg_create,v 1.95 2007/05/06 15:41:47 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -464,9 +464,9 @@ sub add_description copy_subst_fh($opt_d, $fh); } if (defined $comment) { - print $fh "\n", dosubst('Maintainer: ${MAINTAINER}'), "\n\n"; - if (defined $defines{HOMEPAGE}) { - print $fh dosubst('WWW: ${HOMEPAGE}'), "\n"; + print $fh "\n", dosubst('Maintainer: ${MAINTAINER}'), "\n"; + if (defined $defines{HOMEPAGE} && $defines{HOMEPAGE} ne '') { + print $fh "\n", dosubst('WWW: ${HOMEPAGE}'), "\n"; } } close($fh); |