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 DC99F1381F3 for ; Thu, 18 Jul 2013 00:12:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BECD2E08D9; Thu, 18 Jul 2013 00:12:11 +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 4D463E08D9 for ; Thu, 18 Jul 2013 00:12:11 +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 3069B33E349 for ; Thu, 18 Jul 2013 00:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CD3E1E468F for ; Thu, 18 Jul 2013 00:12:08 +0000 (UTC) From: "Jauhien Piatlicki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jauhien Piatlicki" Message-ID: <1374106292.ec162079db8533c7988b0b8a6bbbe8de29cf8426.jauhien@gentoo> Subject: [gentoo-commits] proj/g-sorcery:master commit in: gs_ctan/ X-VCS-Repository: proj/g-sorcery X-VCS-Files: gs_ctan/ctan_db.py X-VCS-Directories: gs_ctan/ X-VCS-Committer: jauhien X-VCS-Committer-Name: Jauhien Piatlicki X-VCS-Revision: ec162079db8533c7988b0b8a6bbbe8de29cf8426 X-VCS-Branch: master Date: Thu, 18 Jul 2013 00:12:08 +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: df09a1b4-1fae-4924-869a-a4cf3134f343 X-Archives-Hash: f743b7f56423cf88490203b9836a3650 commit: ec162079db8533c7988b0b8a6bbbe8de29cf8426 Author: Jauhien Piatlicki (jauhien) gmail com> AuthorDate: Thu Jul 18 00:11:32 2013 +0000 Commit: Jauhien Piatlicki gmail com> CommitDate: Thu Jul 18 00:11:32 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=ec162079 gs_ctan/ctan_db: parse_data, dependency parsing --- gs_ctan/ctan_db.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gs_ctan/ctan_db.py b/gs_ctan/ctan_db.py index adb6544..47d7160 100644 --- a/gs_ctan/ctan_db.py +++ b/gs_ctan/ctan_db.py @@ -59,6 +59,11 @@ class CtanDB(PackageDB): res_entry[current_key]["files"] = [] elif not line[KEY]: res_entry[current_key]["files"].append(" ".join(line[VALUE:])) + elif line[KEY] == "depend": + if "depend" in res_entry: + res_entry["depend"].append(" ".join(line[VALUE:])) + else: + res_entry["depend"] = [" ".join(line[VALUE:])] else: if previous_key == line[KEY]: res_entry[previous_key] += " " + " ".join(line[VALUE:])