From 073b62408fde10d5604769acdf3b34497a18ae6f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 25 Jan 2008 02:28:34 +0000 Subject: [PATCH] Show revision number in version if available. --- deluge/main.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/deluge/main.py b/deluge/main.py index ffd382339..954556d02 100644 --- a/deluge/main.py +++ b/deluge/main.py @@ -55,7 +55,11 @@ def start_ui(): from deluge.log import LOG as log - log.info("Deluge ui %s", deluge.common.get_version()) + version = deluge.common.get_version() + if deluge.common.get_revision() != "": + version = version + "r" + deluge.common.get_revision() + + log.info("Deluge ui %s", version) log.debug("options: %s", options) log.debug("args: %s", args) @@ -76,8 +80,12 @@ def start_daemon(): (options, args) = parser.parse_args() from deluge.log import LOG as log - - log.info("Deluge daemon %s", deluge.common.get_version()) + + version = deluge.common.get_version() + if deluge.common.get_revision() != "": + version = version + "r" + deluge.common.get_revision() + + log.info("Deluge daemon %s", version) log.debug("options: %s", options) log.debug("args: %s", args)