From f63abe65a9763ebfa5f640118e2ac158cc7ebf5b Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sat, 22 Apr 2006 15:37:31 +0000 Subject: [PATCH] paranthesis fixes --- pisi/file.py | 4 ++-- pisi/sourcedb.py | 4 ++-- pisi/util.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pisi/file.py b/pisi/file.py index 371bbd65..86beb8ce 100644 --- a/pisi/file.py +++ b/pisi/file.py @@ -183,10 +183,10 @@ class File: if self.sign==File.detached: if pisi.util.run_batch('gpg --detach-sig ' + self.localfile)[0]: - raise Error(_("ERROR: gpg --detach-sig %s failed" % self.localfile)) + raise Error(_("ERROR: gpg --detach-sig %s failed") % self.localfile) if compressed_file: if pisi.util.run_batch('gpg --detach-sig ' + compressed_file)[0]: - raise Error(_("ERROR: gpg --detach-sig %s failed" % compressed_file)) + raise Error(_("ERROR: gpg --detach-sig %s failed") % compressed_file) @staticmethod def check_signature(uri, transfer_dir, sign=detached): diff --git a/pisi/sourcedb.py b/pisi/sourcedb.py index 99b388d6..248024a9 100644 --- a/pisi/sourcedb.py +++ b/pisi/sourcedb.py @@ -57,13 +57,13 @@ class SourceDB(object): try: return self.d.get_item(name, repo, txn) except pisi.itembyrepodb.NotfoundError, e: - raise NotfoundError(_("Source package %s not found" % name)) + raise NotfoundError(_("Source package %s not found") % name) def get_spec_repo(self, name, repo=None, txn = None): try: return self.d.get_item_repo(name, repo, txn) except pisi.itembyrepodb.NotfoundError, e: - raise NotfoundError(_("Source package %s not found" % name)) + raise NotfoundError(_("Source package %s not found") % name) def pkgtosrc(self, name, txn = None): return self.dpkgtosrc.get_item(name, txn=txn) diff --git a/pisi/util.py b/pisi/util.py index c4db73de..e5eda1d7 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -656,7 +656,7 @@ def env_update(): # run ldconfig if run_batch("/sbin/ldconfig -X -r %s" % ctx.config.dest_dir())[0]: - raise Error(_("ERROR: /sbin/ldconfig -X -r %s failed" % ctx.config.dest_dir())) + raise Error(_("ERROR: /sbin/ldconfig -X -r %s failed") % ctx.config.dest_dir()) def pure_package_name(package_name): "return pure package name from given string" @@ -669,5 +669,5 @@ def pure_package_name(package_name): def generate_pisi_file(patchFile, fromFile, toFile): if run_batch("xdelta patch %s %s %s" % (patchFile, fromFile, toFile))[0]: - raise Error(_("ERROR: xdelta patch %s %s %s failed" % (patchFile, fromFile, toFile))) + raise Error(_("ERROR: xdelta patch %s %s %s failed") % (patchFile, fromFile, toFile))