From 3a16deec73ccb3eaffc85c1126bcb01d52ea32d2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 19 Nov 2010 13:48:44 +0000 Subject: Change sitesummary-upload to not try to parse an empty $http_proxy variable. This get it working on hosts without a proxy setting. --- debian/changelog | 4 ++++ sitesummary-upload | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a7c6f90..1d10d3f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ sitesummary (0.0.67̃~svn70806) UNRELEASED; urgency=low * only run lsscsi from collect.d/system, if /proc/bus/scsi exsists to avoid errors on machines without /sys mouted, like chroots and vservers. (Closes: #602286). + + [ Petter Reinholdtsen ] + * Change sitesummary-upload to not try to parse an empty $http_proxy + variable. This get it working on hosts without a proxy setting. -- Ronny Aasen Wed, 03 Nov 2010 11:06:12 +0200 diff --git a/sitesummary-upload b/sitesummary-upload index 6e5504c..04aaf4b 100755 --- a/sitesummary-upload +++ b/sitesummary-upload @@ -31,7 +31,7 @@ print "Unable to parse url\n" if ($opts{'d'} && ! $host); my ($http_proxy,$proxy,$port,$remote); $http_proxy=$ENV{'http_proxy'}; -if (defined($http_proxy)) +if (defined($http_proxy) && $http_proxy) { $http_proxy =~ m{http://([^:]*)(?::([0-9]+))?} or die ("unrecognized http_proxy"); -- cgit v1.2.3