diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-05-04 09:05:23 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-05-04 09:05:23 +0300 |
commit | ed74161b7e5b90ba886926ced14ba3aca018a4f4 (patch) | |
tree | 85fd8fa3f12405a6180e94345085038738025220 /python/rpm | |
parent | f2c4eebae0c33c01274b2da1ecb19f62beecb21f (diff) | |
download | librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.tar.gz librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.tar.bz2 librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.zip |
Rename python module version symbol to __version__, add __version_info__
- This seems to be a de-facto standard in python land, as rpm.version
hasn't been in any released version we can still change this easily.
Suggestion from James Antill.
Diffstat (limited to 'python/rpm')
-rw-r--r-- | python/rpm/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/rpm/__init__.py b/python/rpm/__init__.py index b7021ce5b..d584a3939 100644 --- a/python/rpm/__init__.py +++ b/python/rpm/__init__.py @@ -14,6 +14,9 @@ _RPMVSF_NOHEADER = _rpm._RPMVSF_NOHEADER _RPMVSF_NOPAYLOAD = _rpm._RPMVSF_NOPAYLOAD _RPMVSF_NOSIGNATURES = _rpm._RPMVSF_NOSIGNATURES +__version__ = _rpm.__version__ +__version_info__ = tuple(__version__.split('.')) + # try to import build bits but dont require it try: from rpm._rpmb import * |