From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 787E7138334 for ; Mon, 15 Oct 2018 18:05:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0182E07ED; Mon, 15 Oct 2018 18:05:46 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8615BE07D1 for ; Mon, 15 Oct 2018 18:05:46 +0000 (UTC) Received: from pomiot (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A7696335C8C; Mon, 15 Oct 2018 18:05:43 +0000 (UTC) Message-ID: <1539626738.1014.0.camel@gentoo.org> Subject: Re: [gentoo-dev] Can pkg_nofetch determine if a file is already downloaded? From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Mon, 15 Oct 2018 20:05:38 +0200 In-Reply-To: References: Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-qCXd8BmfKAkUG+bFCiZs" X-Mailer: Evolution 3.26.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: 1a4367e0-82ae-49f7-b2e2-29788ebb243e X-Archives-Hash: 4647d8c011ab0bae50b7e20f3d8cba06 --=-qCXd8BmfKAkUG+bFCiZs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2018-10-15 at 13:34 +0200, Michael Haubenwallner wrote: > Hi, >=20 > in pkg_nofetch, beyond to "direct the user to download relevant source fi= les", > I've found it useful to tell the user which filesystem directory to put t= he > files into once downloaded. >=20 > Beyond that, I've also found it useful to tell the user whether a relevan= t > source file is 'already there' or 'still missing'. >=20 > Since the EAPI 6 related update to pkg_* phases to not have access to DIS= TDIR > (even in earlier EAPI) any more, I'm wondering if both informations are s= till > available to pkg_nofetch in one or another way. >=20 > Any idea? >=20 > Or is my only option to reduce the information to "all these files need t= o be > put in your DISTDIR", requiring the user to find out both the right DISTD= IR > and which of the listed files are still missing herself? >=20 How would you know whether the file in DISTDIR is correct and complete? --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-qCXd8BmfKAkUG+bFCiZs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEXr8g+Zb7PCLMb8pAur8dX/jIEQoFAlvE1vNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDVF QkYyMEY5OTZGQjNDMjJDQzZGQ0E0MEJBQkYxRDVGRjhDODExMEEACgkQur8dX/jI EQqUwg//eyGIf0EHrvWZW+vXj/r5oM43/q8DZNcBWtYn2dK2iU6LqAyPkBXnYvrg CZ68trPfdRncAFcgxs0NkIziEHUyHL6H8nVJWVdUkOTKTEA/Iy+ViDSDZuICS/uU aG622XOnTUo3Emt5H1mZYcU5IjXp/wi1EpaEbzXkOh/74lns0sKCt/EhcUjtqvw4 C4c8xBK/U7IjLm5cg49h3uQSPlzJRthdEysOxPUKMn1uV4B8i4ZltRyVU18GfsSE QKz5a+k60QhshluLKiSO/sG6IRWoHcbUW5xPP1GvOi2ayM0ht78T7IPiF0agOHxQ NV0wXxbuaTjgGJABaUtiD2H8nqWFbFKcQxz/Mj5A/rgkttqW6DrrXn/D34EFlUQI HXXlMFiJFLC7uFDe/4stcjgRzGca10e/vi5NqFratOj/IIR3GKcjEsD3Ww8ZfTRn D6XYZhxwMQXmObVehR/wwb6nhs1+NMKngq9HG7EXL/QR1uhqp36AUsHTvseZUnid H2GZpfwwYyT/MJeE5PJcMPQhf3+HxgJkEHjxS9cPRba3eMrtQP1EktP8UbbwJBSV XTIlilHoO/wGUdmXVlJCcyZuOkGKQ6pbdkPlnk8XVQpi8KGS61nlFtXC7yW7kawU HSjSPPhr8SAuxg1jcqwBXxCQ6KEeAS+IuHo5awtpHrhRTwfzxgc= =h2HH -----END PGP SIGNATURE----- --=-qCXd8BmfKAkUG+bFCiZs--