From 56498f9f0bb3d1949187f60ee83e44aa28caa4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Thu, 24 May 2007 12:08:15 +0000 Subject: [PATCH] =?UTF-8?q?2007=20deposunda=20hen=C3=BCz=20translations.xm?= =?UTF-8?q?l'ler=20yok,=20uyar=C4=B1=20ver=20ve=20hetay=C4=B1=20handle=20e?= =?UTF-8?q?t...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pisi/build.py b/pisi/build.py index 3ca7d0e3..7dcf3b95 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -254,7 +254,11 @@ class Builder: def fetch_translationsfile(self): translationsuri = pisi.util.join_path(self.specdiruri, ctx.const.translations_file) - self.download(translationsuri, self.destdir) + # FIXME: This can be removed after 2007 repository received all translations.xml files from devel / caglar + try: + self.download(translationsuri, self.destdir) + except pisi.fetcher.FetchError: + ctx.ui.error(_("This package has no translations.xml, please correct that one in repository!")) def fetch_patches(self): spec = self.spec