diff options
author | Clark Williams <williams@redhat.com> | 2008-12-19 15:58:06 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2008-12-19 15:58:06 -0600 |
commit | 78cd2d318fb16777db57af335c2e82db3c06c3f7 (patch) | |
tree | 7ad701eb2b3beebf7d25c9df49a4c0104c0d1a18 | |
parent | d0bbbdb28ab908e95437e7a2ca5b68cdb5634030 (diff) | |
download | mock-78cd2d318fb16777db57af335c2e82db3c06c3f7.tar.gz mock-78cd2d318fb16777db57af335c2e82db3c06c3f7.tar.xz mock-78cd2d318fb16777db57af335c2e82db3c06c3f7.zip |
added version variable; added Mock Version banner to all logs
-rw-r--r-- | py/mock/backend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py index 6cfd603..f5f7ab4 100644 --- a/py/mock/backend.py +++ b/py/mock/backend.py @@ -31,6 +31,7 @@ class Root(object): self.preExistingDeps = "" self.logging_initialized = False self.buildrootLock = None + self.version = config['version'] self.sharedRootName = config['root'] if config.has_key('unique-ext'): @@ -544,6 +545,7 @@ class Root(object): fh.setFormatter(formatter) fh.setLevel(logging.NOTSET) log.addHandler(fh) + log.info("Mock Version: %s" % self.version) finally: self.uidManager.restorePrivs() |