From 6ea70ee627385662c1943b98ca4ecf9d65d2c300 Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 11 Apr 2008 23:51:34 +0000 Subject: [PATCH] Entropy/EquoInterface: - improve HTTP User-Agent information transmitted git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1709 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index c9ad4aabb..8983f2ca9 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6110,7 +6110,13 @@ class urlFetcher: self.entropyTools = entropyTools self.socket = socket self.progress = None - self.user_agent = "Entropy/1.0 (compatible; Entropy; Linux)" + self.user_agent = "Entropy/%s (compatible; %s; %s %s %s)" % ( + etpConst['entropyversion'], + os.path.basename(self.url), + os.uname()[0], + os.uname()[4], + os.uname()[2], + ) self.extra_header_data = {} # resume support