W dniu sob, 27.01.2018 o godzinie 13∶24 -0500, użytkownik Michael
Orlitzky napisał:
> On 01/27/2018 01:14 PM, Michał Górny wrote:
> > > 
> > > If we have a tool like edistadd, then I see the problem. But if we were
> > > going to use file-data based hashes, then there would be no need for a
> > > tool in most cases. As a developer, "repoman manifest" would handle it.
> > > As a user, I'm going to see a message like,
> > > 
> > >  Fetch instructions for games-fps/doom3-lms-4:
> > >   * Please download LastManStandingCoop4Multiplatform.zip from:
> > >   * http://www.moddb.com/mods/last-man-standing-coop/downloads
> > >   * and move it to /var/cache/portage/distfiles
> > > 
> > > except instead of $DISTDIR, it would suggest whatever directory is
> > > computed from the hash in the manifest.
> > > 
> > 
> > How would that work if you had 5 different files, every one evaluating
> > to a different directory?
> > 
> 
> for i in range(1,N):
>     do-what-you-did-for-the-first-one(i)
> 
> For example,
> 
> Fetch instructions for app-cat/pkg:
>  *
>  * Please download file1 from:
>  * wherever file1 can be found
>  * and move it to $DISTDIR/subdir1
>  *
>  * Please download file2 from
>  * wherever file2 can be found
>  * and move it to $DISTDIR/subdir2
>  *
>  * ...
>  *
>  * Please download fileN from
>  * wherever fileN can be found
>  * and move it to $DISTDIR/subdirN
> 

Do you really believe this to be more friendly than a helper that places
all the files in correct directories?

-- 
Best regards,
Michał Górny


Reply via email to