From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E7F2B138202 for ; Thu, 5 Sep 2013 16:01:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D32AFE0FCF; Thu, 5 Sep 2013 16:01:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D0ACE0FCF for ; Thu, 5 Sep 2013 16:01:06 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20F3533EB23 for ; Thu, 5 Sep 2013 16:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 57817E545E for ; Thu, 5 Sep 2013 16:01:03 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1378396781.96b584032ddbc9d3eea5cc59be89c3592e71462d.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/pkgdir/metadata/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/pkgdir/metadata/__init__.py X-VCS-Directories: roverlay/overlay/pkgdir/metadata/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 96b584032ddbc9d3eea5cc59be89c3592e71462d X-VCS-Branch: master Date: Thu, 5 Sep 2013 16:01:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f5f1dd87-7fdb-40dd-8bf1-c5412df2ab65 X-Archives-Hash: 4e7e9ec6e5764ad61a06e897815339fe commit: 96b584032ddbc9d3eea5cc59be89c3592e71462d Author: André Erdmann mailerd de> AuthorDate: Thu Sep 5 15:59:41 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Sep 5 15:59:41 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=96b58403 fix 014240b7155c2fede9931f83e0bb22fb292d83c0 forgot to set retcode|=METADATA_NO_PACKAGE --- roverlay/overlay/pkgdir/metadata/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roverlay/overlay/pkgdir/metadata/__init__.py b/roverlay/overlay/pkgdir/metadata/__init__.py index da42307..ba06bc2 100644 --- a/roverlay/overlay/pkgdir/metadata/__init__.py +++ b/roverlay/overlay/pkgdir/metadata/__init__.py @@ -137,6 +137,8 @@ class MetadataJob ( object ): with open ( self.filepath, 'w' ) as fh: if not mref.write_file ( fh ): retcode |= self.METADATA_WRITE_ERROR + else: + retcode |= self.METADATA_NO_PACKAGE self.last_write_code = retcode return bool ( retcode == self.METADATA_SUCCESS ) @@ -157,6 +159,6 @@ class MetadataJob ( object ): if code & self.METADATA_WRITE_ERROR: yield "write error" - reasons = list ( self.gen_decode ( self.last_write_code ) ) + reasons = list ( gen_decode ( self.last_write_code ) ) return reasons if reasons else [ '', ] # --- end of decode_write_errors (...) ---