mirror of
https://github.com/Yubico/yubiadmin.git
synced 2025-02-20 14:54:30 +01:00
Better logging.
This commit is contained in:
parent
166e432332
commit
17e7423bb0
@ -25,6 +25,7 @@
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
from distutils import log
|
||||
from distutils.core import Command
|
||||
from distutils.errors import DistutilsSetupError
|
||||
import os
|
||||
@ -92,8 +93,8 @@ class release(Command):
|
||||
cmd = '%s/publish %s %s dist/%s.tar.gz*' % (
|
||||
web_repo, self.name, self.version, self.fullname)
|
||||
if self.execute(os.system, (cmd,)):
|
||||
self.announce("Release published! Don't forget to:")
|
||||
self.announce(" (cd %s && git push)" % web_repo)
|
||||
self.announce("Release published! Don't forget to:", log.INFO)
|
||||
self.announce(" (cd %s && git push)" % web_repo, log.INFO)
|
||||
else:
|
||||
self.warn("There was a problem publishing the release!")
|
||||
else:
|
||||
@ -132,5 +133,5 @@ class release(Command):
|
||||
|
||||
self._publish()
|
||||
|
||||
self.announce("Release complete! Don't forget to:")
|
||||
self.announce(" git push && git push --tags")
|
||||
self.announce("Release complete! Don't forget to:", log.INFO)
|
||||
self.announce(" git push && git push --tags", log.INFO)
|
||||
|
Loading…
x
Reference in New Issue
Block a user