diff --git a/osc/core.py b/osc/core.py index fe97d098..8b14f49a 100755 --- a/osc/core.py +++ b/osc/core.py @@ -528,6 +528,7 @@ def init_basicauth(): # create the AuthHandler opener = urllib2.build_opener(authhandler) + opener.addheaders = [('User-agent', 'osc/%s' % __version__)] urllib2.install_opener(opener) # All calls to urllib2.urlopen will now use our handler