-
Notifications
You must be signed in to change notification settings - Fork 21
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
Package download does not work when the URL is composed with variables in the powershell script. #4
Comments
So I've had a bit of a play with However at least in the case of the Firefox One option might be to remove any lines containing |
I like the idea of invoking a modified version of the Without an intimate understanding of the The only alternative I can think of is to modify the chocolatey source so that |
yep, I fully appreciate that a general solution can't target all packages - another issue in the firefox package - if already installed it skips the definition block - so the machine used to update all the cached packages can't have firefox installed ... |
Some psuedo code for ref;
|
It'd also be pretty cool if, we inserted a block instead of just replacing source line - which checked if the local source exists, if not, uses the original url, maybe as a flag |
I agree. I like the command line argument -allow_web_attempt. |
Another feature that could be helpful is some sort of dictionary which can be simply stored as a csv file. The key would be the original web URL and the value would be the local path. This would allow the ability to store various installers for the same |
You could recreate the script and replace Install-ChocolateyPackage command with the I'm really close to being able to recreate repositories on offline environments, and those seems to be the only problems left... (already partially solved dependencies and getting an extensive list of all the available packages in a repository). |
Any progress on this? |
No sorry. I have not spent any time on this issue. I would accept pull request if someone wants to look at it. |
No problem! I'm working on a solution for $variables here. It doesn't try to automatically compute the values of variables. Instead it relies on the user to enter the values he wants when he calls ChocolateStore. Examples:
This is simpler to implement and has the advantage that the administrator can enter several options. So for example, he can download the cached package with several locales that he knows are used in his network and the original script will still select the appropriate one for a computer running chocolatey. My solution also works with several variables, as it downloads all possible permutations of variables. I'm not finished yet, however:
|
The code in the branch mentioned above is now feature complete. I‘ll submit a pull request soon, after I‘ve done some more extensive tests with packages from the repositories. |
For example, the following package is not able to download the installer for "sublime text 3":
http://chocolatey.org/api/v2/package/SublimeText3/3.0.0.3065
The text was updated successfully, but these errors were encountered: