From d6294587bb93e9e53652b78cbffbd3ae1140da36 Mon Sep 17 00:00:00 2001 From: Derek Weitzel Date: Wed, 19 Sep 2018 14:54:13 -0500 Subject: [PATCH 1/2] Fixing version formatting --- bin/stashcp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/stashcp b/bin/stashcp index d558d63..8b31582 100755 --- a/bin/stashcp +++ b/bin/stashcp @@ -17,7 +17,7 @@ import logging from urlparse import urlparse # Version information for user-agent -VERSION = "5.1.1" +VERSION = "5.1.2" main_redirector = "root://redirector.osgstorage.org" stash_origin = "root://stash.osgconnect.net" @@ -407,7 +407,7 @@ def get_best_stashcache(): append_text = "api/v1.0/geo/stashcp" # Headers for the HTTP request - headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/{}'.format(VERSION)} + headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/%s' % VERSION } # Randomize the geo ip sites random.shuffle(geo_ip_sites) From b3ea90cc2857f42e327d293584824e080a45ab7e Mon Sep 17 00:00:00 2001 From: Derek Weitzel Date: Wed, 19 Sep 2018 14:57:26 -0500 Subject: [PATCH 2/2] Using proper format for 2.6 --- bin/stashcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/stashcp b/bin/stashcp index 8b31582..44f61ec 100755 --- a/bin/stashcp +++ b/bin/stashcp @@ -407,7 +407,7 @@ def get_best_stashcache(): append_text = "api/v1.0/geo/stashcp" # Headers for the HTTP request - headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/%s' % VERSION } + headers = {'Cache-control': 'max-age=0', 'User-Agent': 'stashcp/{0}'.format(VERSION) } # Randomize the geo ip sites random.shuffle(geo_ip_sites)