-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow generating different arches independently #2
Comments
I'm a bit worried such a feature would add a lot of complexity to the tool for a rather rare use case. However, it should be possible to achieve the same goal using multiple architecture-specific feeds referenced by a single master feed instead. For example:
<interface uri="http://example.com/infozip.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<name>Info-ZIP</name>
<summary>a ZIP tool</summary>
<feed arch="Linux-i486" src="http://example.com/infozip-linux-i486.xml"/>
<feed arch="Linux-x86_64" src="http://example.com/infozip-linux-x86_64.xml"/>
</interface>
<interface uri="http://example.com/infozip-linux-i486.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<feed-for interface="http://example.com/infozip.xml"/>
<!-- ... -->
</interface>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<feed-for interface="http://example.com/infozip-linux-i486.xml"/>
<implementation arch="Linux-i486" version="{version}">
<!-- ... -->
</implementation>
</interface>
from urllib import request
#...
<interface uri="http://example.com/infozip-linux-x86_64.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<feed-for interface="http://example.com/infozip.xml"/>
<!-- ... -->
</interface>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<feed-for interface="http://example.com/infozip-linux-x86_64.xml"/>
<implementation arch="Linux-x86_64" version="{version}">
<!-- ... -->
</implementation>
</interface>
from urllib import request
#... |
that is a good work around |
It would be useful to allow generating feeds for the same version on different arches,
if the source your downloading from does not generate all the archives for all the arches at the same time.
An example of this would be info-zip which depends on third parties to generate binaries. The latest version 64 bit build was built more than a year after the 32 bit build.
I would like to be able to run 0watch and have it find that the linux-i386 version 1 is not generated yet , but the linux-x86_64 and windows-i386 version 1 feeds have been.
I can make the version variable include the arch to work around this.
But, unless I push the arch into the version attribute of the feed file, extra downloads are generated.
The text was updated successfully, but these errors were encountered: