Skip to content

Commit

Permalink
Change the HTTP user agent for DNF.
Browse files Browse the repository at this point in the history
Related RhBug:923384
  • Loading branch information
Ales Kozumplik committed Mar 20, 2013
1 parent 1903e8e commit 15a3eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf/yum/__init__.py
Expand Up @@ -96,14 +96,14 @@ def _rpm_ver_atleast(vertup):
import dnf.rpmUtils.connection
from dnf import const, queries, sack, selector

__version__ = '3.4.3'
__version__ = const.VERSION
__version_info__ = tuple([ int(num) for num in __version__.split('.')])

# Setup a default_grabber UA here that says we are yum, done using the global
# so that other API users can easily add to it if they want.
# Don't do it at init time, or we'll get multiple additions if you create
# multiple Base() objects.
default_grabber.opts.user_agent += " yum/" + __version__
default_grabber.opts.user_agent = "dnf/" + __version__

class _YumCostExclude:
""" This excludes packages that are in repos. of lower cost than the passed
Expand Down

0 comments on commit 15a3eae

Please sign in to comment.