Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure
Date: Sat, 27 Jan 2018 19:47:46
Message-Id: 1517082454.1431.0.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure by Michael Orlitzky
1 W dniu sob, 27.01.2018 o godzinie 13∶24 -0500, użytkownik Michael
2 Orlitzky napisał:
3 > On 01/27/2018 01:14 PM, Michał Górny wrote:
4 > > >
5 > > > If we have a tool like edistadd, then I see the problem. But if we were
6 > > > going to use file-data based hashes, then there would be no need for a
7 > > > tool in most cases. As a developer, "repoman manifest" would handle it.
8 > > > As a user, I'm going to see a message like,
9 > > >
10 > > > Fetch instructions for games-fps/doom3-lms-4:
11 > > > * Please download LastManStandingCoop4Multiplatform.zip from:
12 > > > * http://www.moddb.com/mods/last-man-standing-coop/downloads
13 > > > * and move it to /var/cache/portage/distfiles
14 > > >
15 > > > except instead of $DISTDIR, it would suggest whatever directory is
16 > > > computed from the hash in the manifest.
17 > > >
18 > >
19 > > How would that work if you had 5 different files, every one evaluating
20 > > to a different directory?
21 > >
22 >
23 > for i in range(1,N):
24 > do-what-you-did-for-the-first-one(i)
25 >
26 > For example,
27 >
28 > Fetch instructions for app-cat/pkg:
29 > *
30 > * Please download file1 from:
31 > * wherever file1 can be found
32 > * and move it to $DISTDIR/subdir1
33 > *
34 > * Please download file2 from
35 > * wherever file2 can be found
36 > * and move it to $DISTDIR/subdir2
37 > *
38 > * ...
39 > *
40 > * Please download fileN from
41 > * wherever fileN can be found
42 > * and move it to $DISTDIR/subdirN
43 >
44
45 Do you really believe this to be more friendly than a helper that places
46 all the files in correct directories?
47
48 --
49 Best regards,
50 Michał Górny

Replies