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 C9A62139357 for ; Fri, 24 Jul 2015 01:28:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A67F7140A5; Fri, 24 Jul 2015 01:28:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4CD2D140A5 for ; Fri, 24 Jul 2015 01:28:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2516E340890 for ; Fri, 24 Jul 2015 01:28:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 144C2B7 for ; Fri, 24 Jul 2015 01:28:15 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1437701253.77ac0337fc621fe6e6cd7c57910c03ee14321dc5.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: tbc/pym/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: tbc/pym/package.py tbc/pym/updatedb.py X-VCS-Directories: tbc/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 77ac0337fc621fe6e6cd7c57910c03ee14321dc5 X-VCS-Branch: master Date: Fri, 24 Jul 2015 01:28:15 +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: 4ff5e1e4-2557-4df3-b058-8a6d3d8f801c X-Archives-Hash: 14d697ab77a5d194ea9378987c58616e commit: 77ac0337fc621fe6e6cd7c57910c03ee14321dc5 Author: Magnus Granberg gentoo org> AuthorDate: Fri Jul 24 01:27:33 2015 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Fri Jul 24 01:27:33 2015 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=77ac0337 fix some small typos tbc/pym/package.py | 10 +++++----- tbc/pym/updatedb.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tbc/pym/package.py b/tbc/pym/package.py index cc03f97..d861044 100644 --- a/tbc/pym/package.py +++ b/tbc/pym/package.py @@ -162,17 +162,17 @@ class tbc_package(object): spec = 3 spec_tmp = 1 changelog_text_tree = '' - for index, text_line inchangelog_text_dict.items(): - if re.search('^#', text_line) + for index, text_line in changelog_text_dict.items(): + if re.search('^#', text_line): changelog_text_tree = changelog_text_tree + text_line - elif re.search('^\n', text_line) and re.search('^\*', changelog_text_dict[index + 1]) + elif re.search('^\n', text_line) and re.search('^\*', changelog_text_dict[index + 1]): changelog_text_tree = changelog_text_tree + text_line spec_tmp = spec_tmp + 1 spec = spec + 1 - elif re.search('^\n', text_line) and not re.search('^\*', changelog_text_dict[index + 1]) + elif re.search('^\n', text_line) and not re.search('^\*', changelog_text_dict[index + 1]): if spec_tmp == spec: break - else + else: spec_tmp = spec_tmp + 1 changelog_text_tree = changelog_text_tree + text_line else: diff --git a/tbc/pym/updatedb.py b/tbc/pym/updatedb.py index b8be53f..fb96e13 100644 --- a/tbc/pym/updatedb.py +++ b/tbc/pym/updatedb.py @@ -42,7 +42,7 @@ def get_categories_metadataDict(pkgdir): categories_metadataDict = {} pkg_md = MetaDataXML(pkgdir + "/metadata.xml", None) metadata_xml_descriptions_tree = re.sub('\t', '', pkg_md.descriptions()[0]) - categories_metadataDict['metadata_xml_descriptions'] = re.sub('\n', '', metadata_xml_descriptions_tree) + categories_metadataDict['metadata_xml_descriptions'] = re.sub('\n', '', metadata_xml_descriptions_tree) categories_metadataDict['metadata_xml_checksum'] = portage.checksum.sha256hash(pkgdir + "/metadata.xml")[0] return categories_metadataDict