summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layman/db.py3
-rw-r--r--layman/version.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/layman/db.py b/layman/db.py
index 0e581bd..1cf637d 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -31,6 +31,7 @@ import hashlib
from layman.utils import path, delete_empty_directory
from layman.dbbase import DbBase
from layman.makeconf import MakeConf
+from layman.version import VERSION
#from layman.debug import OUT
@@ -296,7 +297,7 @@ class RemoteDB(DbBase):
# and don't re-fetch it unless it has changed
request = urllib2.Request(url)
opener = urllib2.build_opener()
- opener.addheaders = [('User-Agent', 'Layman-2.0-git')]
+ opener.addheaders = [('User-Agent', 'Layman-' + VERSION)]
if os.path.exists(tpath):
with open(tpath,'r') as previous:
diff --git a/layman/version.py b/layman/version.py
index 02750c5..5a1e9cd 100644
--- a/layman/version.py
+++ b/layman/version.py
@@ -22,7 +22,7 @@ from __future__ import print_function
__version__ = "$Id: version.py 309 2007-04-09 16:23:38Z wrobel $"
-VERSION = '1.4.2'
+VERSION = '2.0-git'
if __name__ == '__main__':
print(VERSION)