Re: Issue when having <archive extract>

Thomas Leonard <[email protected]> Thu, 10 Dec 2015 20:17:14 +0000
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy807hsFF0gQV=KJ-AzH-xq6yWHMSLqub8Rb4A4-xfZDwg@mail.gmail.com>
On 10 December 2015 at 06:12, Alex Eng <[email protected]> wrote:
> Hi,
>
> I'm trying to install one of my 0install application which package a zip
> file (zanata-cli/bin/zanata-cli), extract and run the executable
> bin/zanata-cli.
>
> This is the command I run
>
> 0install -c add zanata-cli
> https://raw.githubusercontent.com/zanata/zanata.github.io/master/files/0install/zanata-cli.xml
>
>
> This is the exception I got.
> open_temp_file failed: /home/user1/bin/tmp-55724b.new: No such file or
> directory
>
> Apparently I can resolve the issue by creating a "~/bin" directory.
>
> The question is, shouldn't 0install handle the extraction to somewhere
> rather than the user need to create the ~/bin directory manually? Or there
> something missing in my feed?

You're right. Looks like if ~/bin is already in $PATH but doesn't yet
exist then you get this error. I've committed a fix:

  https://github.com/0install/0install/commit/3902366c0203d29a96aca279831b2a532b509b0f

Thanks!


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------