[PATCH 4/6] Add __version__ to blivet/__init__.py.
David Lehman
dlehman at redhat.com
Mon Mar 11 17:40:50 UTC 2013
---
Makefile | 1 +
blivet/__init__.py | 3 +++
2 files changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 228feb0..2ecc6ce 100644
--- a/Makefile
+++ b/Makefile
@@ -71,6 +71,7 @@ bumpver: po-pull
mv $(SPECFILE).new $(SPECFILE) ; rm -f speclog ; \
sed -i "s/Version: $(VERSION)/Version: $$NEWVERSION/" $(SPECFILE) ; \
sed -i "s/version='$(VERSION)'/version='$$NEWVERSION'/" setup.py ; \
+ sed -i "s/__version__ = '$(VERSION)'/__version__ = '$$NEWVERSION'/" blivet/__init__.py ; \
make -C po $(PKGNAME).pot ; \
tx push $(TX_PUSH_ARGS)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 4baff95..ccca9f1 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -20,6 +20,8 @@
# Red Hat Author(s): Dave Lehman <dlehman at redhat.com>
#
+__version__ = '0.7'
+
##
## Default stub values for installer-specific stuff that gets set up in
## enable_installer_mode.
@@ -370,6 +372,7 @@ class Blivet(object):
information like passphrases, iscsi config, &c
"""
+ log.info("resetting Blivet (version %s) instance %s" % (__version__, self))
# save passphrases for luks devices so we don't have to reprompt
self.encryptionPassphrase = None
for device in self.devices:
--
1.8.1.4
More information about the anaconda-patches
mailing list