On Mar 30, 2016, at 3:06 PM, Mojca Miklavec wrote: > On 30 March 2016 at 19:25, René J. V. wrote: >> >>> It is fairly obvious how to extract these files. There is usually no >>> need to specify how these files should be extracted, since most >>> compression methods can be deduced from the filename. >>> >>> The command 'use_* yes' would then only set the extract.suffix >>> accordingly, instead of the explicit extract.cmd. These two options >>> would then be equivalent: >>> >>> use_xz yes >>> extract.suffix .tar.xz >> >> Still, how would that be implemented in "base", except by an algorithm that >> determines how to extract each file (that is to be handled in the extract >> phase) >> based on the filename or (better) from a magic cookie? > > Those are the details. If a distfile has a standard extension, it's no > problem figuring out how to extract it.
libmagic should be used to determine the compression format; filename extension should not be used. _______________________________________________ macports-dev mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-dev
