On Mon, 12 Nov 2007 11:47:45 +0000, Tuomo Valkonen wrote:
[...]
> It's unfortunate that ZeroInstall doesn't AFAIK let you set/append
> environment variables based on the location of the package in question,
> only dependencies.

The svn version supports this (since 2007-09-18). I'll make a 0.31 
release soon.

Note that you can hack around this in older versions by depending on 
yourself!

> This way it could just handle all those crummy details, and use a sane
> default setting. Likewise, programs wouldn't have to use $0 to figure
> out their location, but could take it from the environment. Of course, 
> setting a complete MANPATH sucks when there's `manpath`, and `man` 
> should really support extra paths or databases instead of total 
> overrides... An extra 0man wrapper (aliased to man in the shell) could 
> of course do stuff like that. But it's again not something that Ion
> should provide.

Since 0.28 you can do:

$ alias man='0alias --manpage'

Then e.g.

$ 0alias svn http://0install.net/2007/3rd-party/Subversion.xml
$ man svn

works. Note that the argument to man is the name of the alias you created.

BTW, the XML file currently lists the download location as "SITE", so it 
doesn't work:

    <archive extract="ion-3rc-20071109-bin-i386-linux"
      href="http://SITE/ion-3rc-20071109-bin-i386-linux.tar.gz"; 
      size="901857" type="application/x-compressed-tar"/>

You can check the feed like this:

$ 0launch http://0install.net/2007/interfaces/FeedLint.xml \
          http://iki.fi/tuomov/dl/Ion3.xml


-- 
Dr Thomas Leonard               http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

Reply via email to