From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P6nar-0002WJ-9x for garchives@archives.gentoo.org; Fri, 15 Oct 2010 16:57:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54B00E09BD; Fri, 15 Oct 2010 16:56:02 +0000 (UTC) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 389E0E09BD for ; Fri, 15 Oct 2010 16:56:02 +0000 (UTC) Received: by ywo7 with SMTP id 7so921243ywo.40 for ; Fri, 15 Oct 2010 09:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=wTv8rK5rlyU46ARNg7Iq18YhJfXUgVPs5Qc9FcqShzc=; b=ZwfYan9Xhx50gw1rE1HY0+uynt2jl+bGCnEHsb9NSpFFM7cNSMLhUXkZSl0nGf5QO8 fk+ScYm/LekOloeEMnPtgUv+m6Aih71emol+gnrcVExk2b2CknvudZGbj8M1nljr+xn9 XO24VD4NPxIab5ECJDt7bb4H2xgLZhc9SCSy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=UFXPIpGkYJsFEgh9GpTfd66tbJ2/0P8eEk15n47fDV08/oyYLQenfRZofBkbHxc2qW whwKMYGHE0xjY4En8Cv6OBGqcXt7rx+vrAuXjtKRucAcCB1lOFbwKJtYpugl++/xwQ9a HpuR3FElwIMK997fOknU9+YNEnFDpnkh97ClQ= Received: by 10.101.118.2 with SMTP id v2mr9563anm.267.1287161735612; Fri, 15 Oct 2010 09:55:35 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: fthtmn@gmail.com Received: by 10.100.3.7 with HTTP; Fri, 15 Oct 2010 09:55:01 -0700 (PDT) In-Reply-To: <1287160075.21472.3.camel@paska> References: <1287160075.21472.3.camel@paska> From: =?ISO-8859-1?Q?Fatih_T=FCmen?= Date: Fri, 15 Oct 2010 19:55:01 +0300 X-Google-Sender-Auth: Hg92pzVt60b-9orjCOPUcoX0ySw Message-ID: Subject: Re: [gentoo-user] emerge/python failure To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b2fc94ee-be91-4aca-a57c-08aa5caee691 X-Archives-Hash: 65a9635c3ce9276124ab956d61ef2022 On Fri, Oct 15, 2010 at 7:27 PM, Albert Hopkins wr= ote: > On Fri, 2010-10-15 at 07:35 -0700, Mark Knecht wrote: >> =A0 File "/usr/lib64/portage/pym/_emerge/actions.py", line 2134, in >> action_sync >> =A0 =A0 "//" + user_name + ip + port + "/", 1)) >> TypeError: cannot concatenate 'str' and 'int' objects > > This is a bug... shuld be more something like: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0uris.append(syncuri.replace( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"//%s%s%s/" % (user_name, hostname= , port), > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"//%s%s%s/" % (user_name, ip, port= ), 1)) > > Probably needs to be reported. > > > > Coding against PEP8 is not a bug. I guess devs find string concatenation more handy and maintainable. The bug was about the addrinfos data gotten from the server. I thought the response of possibly down rsync server was not handled well, which is why I offered to change rsync server, but the actual problem was caused by assuming that IPv6 is supported on the machine. -- Fatih