1 |
On 01/27/2018 01:14 PM, Michał Górny wrote: |
2 |
>> |
3 |
>> If we have a tool like edistadd, then I see the problem. But if we were |
4 |
>> going to use file-data based hashes, then there would be no need for a |
5 |
>> tool in most cases. As a developer, "repoman manifest" would handle it. |
6 |
>> As a user, I'm going to see a message like, |
7 |
>> |
8 |
>> Fetch instructions for games-fps/doom3-lms-4: |
9 |
>> * Please download LastManStandingCoop4Multiplatform.zip from: |
10 |
>> * http://www.moddb.com/mods/last-man-standing-coop/downloads |
11 |
>> * and move it to /var/cache/portage/distfiles |
12 |
>> |
13 |
>> except instead of $DISTDIR, it would suggest whatever directory is |
14 |
>> computed from the hash in the manifest. |
15 |
>> |
16 |
> |
17 |
> How would that work if you had 5 different files, every one evaluating |
18 |
> to a different directory? |
19 |
> |
20 |
|
21 |
for i in range(1,N): |
22 |
do-what-you-did-for-the-first-one(i) |
23 |
|
24 |
For example, |
25 |
|
26 |
Fetch instructions for app-cat/pkg: |
27 |
* |
28 |
* Please download file1 from: |
29 |
* wherever file1 can be found |
30 |
* and move it to $DISTDIR/subdir1 |
31 |
* |
32 |
* Please download file2 from |
33 |
* wherever file2 can be found |
34 |
* and move it to $DISTDIR/subdir2 |
35 |
* |
36 |
* ... |
37 |
* |
38 |
* Please download fileN from |
39 |
* wherever fileN can be found |
40 |
* and move it to $DISTDIR/subdirN |