* new translations, cosmetic changes
* specfile: don't bail if there is no comment, name, email
This commit is contained in:
@@ -30,13 +30,13 @@ def handle_exception(exception, value, tb):
|
|||||||
ui = pisi.cli.CLI() # make a temporary UI
|
ui = pisi.cli.CLI() # make a temporary UI
|
||||||
show_traceback = False
|
show_traceback = False
|
||||||
if exception == exceptions.KeyboardInterrupt:
|
if exception == exceptions.KeyboardInterrupt:
|
||||||
ui.error(_("\nKeyboardInterrupt: Exiting...\n"))
|
ui.error(_("KeyboardInterrupt: Exiting...\n"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif exception == XmlError:
|
elif exception == XmlError:
|
||||||
ui.error(unicode(value))
|
ui.error(unicode(value))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
elif isinstance(value, pisi.Error):
|
elif isinstance(value, pisi.Error):
|
||||||
ui.error(_("\nFatal Error. Program Terminated."))
|
ui.error(_("Fatal Error. Program Terminated."))
|
||||||
show_traceback = ctx.config.get_option('debug')
|
show_traceback = ctx.config.get_option('debug')
|
||||||
elif isinstance(value, pisi.Exception):
|
elif isinstance(value, pisi.Exception):
|
||||||
show_traceback = True
|
show_traceback = True
|
||||||
@@ -47,7 +47,7 @@ Please file a bug report. (http://bugs.uludag.org.tr)"""))
|
|||||||
# For any other exception (possibly Python exceptions) show
|
# For any other exception (possibly Python exceptions) show
|
||||||
# the traceback!
|
# the traceback!
|
||||||
show_traceback = ctx.config.get_option('debug')
|
show_traceback = ctx.config.get_option('debug')
|
||||||
ui.error(_("\nSystem Error. Program Terminated."))
|
ui.error(_("System Error. Program Terminated."))
|
||||||
|
|
||||||
ui.error("%s: %s\n" % (exception, value))
|
ui.error("%s: %s\n" % (exception, value))
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ def makedirs(destinationDirectory):
|
|||||||
if not os.access(destinationDirectory, os.F_OK):
|
if not os.access(destinationDirectory, os.F_OK):
|
||||||
os.makedirs(destinationDirectory)
|
os.makedirs(destinationDirectory)
|
||||||
except OSError:
|
except OSError:
|
||||||
error(_('Cannot create directory %s' % destinationDirectory))
|
error(_('Cannot create directory %s') % destinationDirectory)
|
||||||
|
|
||||||
def echo(destionationFile, content):
|
def echo(destionationFile, content):
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -150,8 +150,11 @@ class UpdateInfo:
|
|||||||
node.setAttribute("release", self.release)
|
node.setAttribute("release", self.release)
|
||||||
xml.addTextNodeUnder(node, "Date", self.date)
|
xml.addTextNodeUnder(node, "Date", self.date)
|
||||||
xml.addTextNodeUnder(node, "Version", self.version)
|
xml.addTextNodeUnder(node, "Version", self.version)
|
||||||
|
if self.comment:
|
||||||
xml.addTextNodeUnder(node, "Comment", self.comment)
|
xml.addTextNodeUnder(node, "Comment", self.comment)
|
||||||
|
if self.name:
|
||||||
xml.addTextNodeUnder(node, "Name", self.name)
|
xml.addTextNodeUnder(node, "Name", self.name)
|
||||||
|
if self.email:
|
||||||
xml.addTextNodeUnder(node, "Email", self.email)
|
xml.addTextNodeUnder(node, "Email", self.email)
|
||||||
if self.type:
|
if self.type:
|
||||||
node.setAttribute("type", self.type)
|
node.setAttribute("type", self.type)
|
||||||
|
|||||||
+372
-352
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user