summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-07-31 10:04:48 -0300
committerRenato Botelho <renato@netgate.com>2015-07-31 10:04:48 -0300
commitfdc5447bd5e8d8a71d15ac5eefe7795736db7ba7 (patch)
tree96a48c76384c89e48187bc6545cf092af2bbd6f0
parent5779ade6707ba530517da239d9ec3fc751d17d83 (diff)
downloadpfsense-fdc5447bd5e8d8a71d15ac5eefe7795736db7ba7.zip
pfsense-fdc5447bd5e8d8a71d15ac5eefe7795736db7ba7.tar.gz
Define HTTP_USER_AGENT for pkg calls
-rw-r--r--etc/inc/pkg-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index c2da5dd..a9bc25d 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -91,6 +91,7 @@ function pkg_call($params, $mute = false) {
}
$env = array(
+ "HTTP_USER_AGENT" => $g['product_name'] . '/' . $g['product_version'],
"ASSUME_ALWAYS_YES" => "true"
);
@@ -175,6 +176,7 @@ function pkg_exec($params, &$stdout, &$stderr) {
}
$env = array(
+ "HTTP_USER_AGENT" => $g['product_name'] . '/' . $g['product_version'],
"ASSUME_ALWAYS_YES" => "true"
);
OpenPOWER on IntegriCloud