Project

General

Profile

Bug #1305

Non Web App Download Location

Added by bigfoot65 over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
App Install
Target version:
Start date:
02/20/2014
Due date:
% Done:

0%


Description

Apps created where "Suggested URL name" is blank cannot use the "Source URL" for a tarball or zip file.

The file downloads, but disappears. It is not found in /var/hda/tmp/amahi-download-cache or /tmp/amahi-download-cache locations.

The /var/hda/apps/appid directory is created, but it's empty.

I used the http://www.amahi.org/apps/test-variables application and added the app ID and SHA1SUM to output in the /var/log/amahi-app-installer.log file for verification.

History

#1 Updated by bigfoot65 over 6 years ago

Currently the only way for a file to be downloaded and used would be to use amahi-download in the install script. This will put the file in the app directory.

#2 Updated by cpg over 6 years ago

i see the issue. only themes and apps that have webapps use the source_url and download the data.

the work-around is to download the file in the installer for now. sorry.

#3 Updated by bigfoot65 over 6 years ago

Not a problem.

Thought maybe I was doing something wrong. Thanks for running this one to ground.

I presume we can change the behavior for future a future release. It is beneficial to be able to install apps without the web app feature in my opinion.

#4 Updated by cpg over 6 years ago

  • Status changed from New to Assigned

#5 Updated by cpg over 6 years ago

i believe i have a fix for it patch at http://paste.fedoraproject.org/82188/42398139/ and binary for testing on 64 bits at alpha/tmp/hda-platform-7.1.5-5.x86_64.rpm

now, the file is left in the cache ... should it be moved to the app dir ( /var/hda/apps/<appid> ) ?

#6 Updated by cpg over 6 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from cpg to bigfoot65

#7 Updated by bigfoot65 over 6 years ago

I will test it tonight. I think it should remain in the app dir, same bahavior as web-apps. If we want to remove it after install, it can be done via the script.

#8 Updated by bigfoot65 over 6 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from bigfoot65 to cpg

Works perfectly. I would prefer the download be symlinked like it is for web apps. This will at least make it better for those apps like Clonezilla.

#9 Updated by cpg over 6 years ago

ok, try it at alpha/tmp/hda-platform-7.1.5-6.x86_64.rpm

the file is downloaded and then symlinked into the app directory to a file called (always)

source-file

(no extensions at all).

let's try this with a fixed name like that. the idea here is that if the source url and/or the sha1name changes, the install script does not need to change.

if this does not work well, we can try to just link to the name of the file as if it were downloaded, not the sha1 name in the cache.

#10 Updated by bigfoot65 over 6 years ago

That will work just fine. I just preferred having a name to use for tar or unzip. Using source-file will keep it simple as it will always be the same no matter the app :)

Is there going to be a platform update soon? With all these updates I am eager to use them in apps :D

#11 Updated by cpg over 6 years ago

clarification about "this will work".

did you try it? does it work?

if it does, me probably should do a point release.

#12 Updated by cpg over 6 years ago

  • Status changed from Resolved to Closed

never mind, i tested it and it works well. committed in commit:d7f59ce.

will work towards a release.

Also available in: Atom