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 01A1E1381F3 for ; Fri, 19 Jul 2013 08:36:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 039EDE0818; Fri, 19 Jul 2013 08:36:46 +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 8FE54E0818 for ; Fri, 19 Jul 2013 08:36:45 +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 8DC9133E5EF for ; Fri, 19 Jul 2013 08:36:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2313CE4B05 for ; Fri, 19 Jul 2013 08:36:43 +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: <1374222984.48b49d40155690736428eb38d008d6de6961383a.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: 48b49d40155690736428eb38d008d6de6961383a X-VCS-Branch: master Date: Fri, 19 Jul 2013 08:36:43 +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: f6407a36-9c7b-4be1-88f2-e0500804b313 X-Archives-Hash: 3e0ece5c30d70538a9f5c76a77dbafaa commit: 48b49d40155690736428eb38d008d6de6961383a Author: Jauhien Piatlicki (jauhien) gmail com> AuthorDate: Fri Jul 19 08:36:24 2013 +0000 Commit: Jauhien Piatlicki gmail com> CommitDate: Fri Jul 19 08:36:24 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=48b49d40 gs_ctan/ctan_db: CtanDB.additional_write_version, division fix for py3k --- gs_ctan/ctan_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gs_ctan/ctan_db.py b/gs_ctan/ctan_db.py index 99c16c6..7d38385 100644 --- a/gs_ctan/ctan_db.py +++ b/gs_ctan/ctan_db.py @@ -190,9 +190,9 @@ class CtanDB(PackageDB): def additional_write_version(self, category, package, version): chars = ['-','\\','|','/'] show = chars[self.written_number % 4] - percent = (self.written_number * 100)/self.number_of_packages + percent = (self.written_number * 100)//self.number_of_packages length = 20 - progress = (percent * 20)/100 + progress = (percent * 20)//100 blank = 20 - progress sys.stdout.write("\r %s [%s%s] %s%%" % (show, "#" * progress, " " * blank, percent))