+ Try hostname without -f first to be compatible with BSD
(Closes: #356830).
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@273
b513b33f-fedd-0310-b452-
c3deb5f4c849
my $gecos = defined $ENV{'LOGNAME'} ? (getpwnam($ENV{LOGNAME}))[6] : undef;
my $email;
my @keys;
- my $hostname = `hostname -f`;
+ # BSD does not have hostname -f, so we try without -f first
+ my $hostname = `hostname`;
+ $hostname = `hostname -f` unless $hostname =~ /\./;
chomp $hostname;
my ($Cgecos,$Cemail,$Ckeys) = ('','','');
+
if (defined $gecos) {
$gecos =~ s/,.*//;
+signing-party (0.4.6-1) unreleased; urgency=low
+
+ * caff:
+ + Try hostname without -f first to be compatible with BSD
+ (Closes: #356830).
+
+ -- Christoph Berg <myon@debian.org> Sun, 30 Apr 2006 10:52:10 +0200
+
signing-party (0.4.5-1) unstable; urgency=low
* Upgrade debhelper compatibility to the recommended level 5.