Luke Sampson
47aac5b6ba
Revert to ~ means $home instead of $env:userprofile ( fix #1442 )
2017-04-21 16:59:00 +10:00
Luke Sampson
adf0e2cdaf
Adjust style, use $env:userprofile for consistency
2017-04-21 08:41:43 +10:00
Marty Gentillon
6396fef55e
Fixed bug where $home doesn't support .endswith
...
In Windows 10, at least after the Creators update, $h is of type
PathInfo, which does not support String operations. By toStringing it,
we turn it into a String and enable the expected String operations.
see https://github.com/lukesampson/scoop/issues/1440
2017-04-20 15:27:37 -07:00
Luke Sampson
5841a704b2
Don't make 7-zip an install dependency if it's already installed ( fixes #1438 )
2017-04-19 19:43:39 +10:00
Richard Kuhnt
85c1b3ac6f
Change shortcut error message
2017-04-18 21:50:17 +02:00
Richard Kuhnt
2ff4eaaafc
Add success message for created shortcuts
2017-04-18 21:45:06 +02:00
Richard Kuhnt
9b9a2e3289
Don't abort if shortcut can't be created
2017-04-18 21:42:19 +02:00
Sergey
9af3e46847
FTP SIZE request
...
Came across this when tried to install zip.
ContentLength is -1 when downloading from their server.
2017-04-15 22:41:15 +03:00
Richard Kuhnt
bdfbbad513
Revert changes to json_path function for arrays
2017-04-15 18:32:45 +02:00
Richard Kuhnt
38deec90b9
Fix $basename replacement in json_path function
2017-04-15 14:06:01 +02:00
Richard Kuhnt
084f54ed47
Fix newline
2017-04-15 13:59:50 +02:00
Richard Kuhnt
3050a44244
Fix hash detection and improve json path for arrays
2017-04-15 13:58:55 +02:00
Richard Kuhnt
ed857590f6
Improve default hash extraction for autoupdate
...
The hash type will be determined automatically
2017-04-14 17:59:29 +02:00
Richard Kuhnt
83000a8539
Improve exception handling for specific version installation and checkver
2017-04-06 18:37:17 +01:00
Simon Hartcher
836f03db72
Merge pull request #1332 from lukesampson/install-specific-version
...
Installing specific versions using autoupdate feature
2017-04-05 16:07:27 +10:00
Rémy
7410b94848
fix env_add_path regression ( #1417 )
2017-04-03 17:30:08 +02:00
Richard Kuhnt
8e97c2bcc6
Allow uninstalling multiple programs even if some fail or don't exist
2017-04-03 13:13:02 +02:00
Richard Kuhnt
f7e97f949f
replace test-path with is_directory in installed()
...
prevents unwanted behavior with wildcard characters
'scoop uninstall test*' outputs something about removing 'test' and 'test123' but fails silently
2017-04-02 22:30:04 +02:00
Rémy
5053c41bf0
Merge branch 'master' into install-specific-version
2017-04-02 22:10:50 +02:00
Rémy
a53efcacd5
Merge pull request #1410 from rrelmy/persist
...
Persistent data
2017-04-02 21:57:00 +02:00
Simon Hartcher
a00e9ba415
Change usermanifests directory to $env:scoop/workspace
2017-04-02 13:28:54 +10:00
Simon Hartcher
989a235cb2
Replace abort with throw when autoupdate fails
2017-04-02 13:21:46 +10:00
Simon Hartcher
ac9a72992f
Abort autoupdate when it has errors
2017-04-01 13:48:39 +11:00
Simon Hartcher
e799eb1717
Allow resetting of specific version installs
2017-03-31 20:03:13 +11:00
Simon Hartcher
2b96081c21
Merge branch 'master' into install-specific-version
2017-03-31 18:43:23 +11:00
Simon Hartcher
bfde58c720
Remove check_url function
...
Lots of servers block HEAD requests so it's not worth our trouble
maintaining a list of servers
2017-03-31 18:39:38 +11:00
Rémy
e7814ea295
remove $persist_dir from env
2017-03-30 18:28:10 +02:00
Luke Sampson
70a9f9a6b8
Suggested persist changes (see #1410 )
2017-03-30 15:14:20 +11:00
Luke Sampson
93e7a7f0ef
NodeJS without $persist_dir in env_add_path / mark persist dirs as read-only ( #1 )
...
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* persist nodejs fix npm updating itself
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* Fix 'Access is denied' error removing 'current' directory junction.
* change nodejs install behaviour to match upstream installer
`npm update -g` has been remove because it has no effect on the
installed npm version and does not match the official installer
behaviour.
2017-03-30 00:13:27 +02:00
Rémy
36e61b54f9
normalize persist terms
2017-03-26 14:08:58 +02:00
Rémy
6d00ecc60d
persitent data fix global installations
2017-03-25 17:47:17 +01:00
Rémy
357b33ddfe
persist file support
2017-03-25 16:28:06 +01:00
Rémy
91c5955f50
fix parse_def scoping issue
2017-03-25 16:28:06 +01:00
Rémy
a4df96ceae
nodejs persistence: use npm prefix to install bins into data dir / env_add_path with $data_dir
2017-03-25 16:28:06 +01:00
Luke Sampson
732cf2caa2
Persistence: prevent NPM from overwriting node_modules by setting read-only attribute on the persisted directory junction.
2017-03-25 16:28:05 +01:00
Rémy
b4c17c3f9b
create persist directories if they do not exist
2017-03-25 16:28:05 +01:00
Rémy
80550a3dc7
do not create data directory if not needed
2017-03-25 16:28:05 +01:00
Rémy
c9f4ddf219
implement persist definition and tests
2017-03-25 16:28:05 +01:00
Rémy
9388c90232
remove travel_dir partial implementation
2017-03-25 16:28:05 +01:00
Rémy
cafefdf658
intial persist implementation
2017-03-25 16:28:05 +01:00
Richard Kuhnt
53f0e2c590
Fix relative-path to other drives which could break shims
2017-03-24 21:58:01 +01:00
Richard Kuhnt
fc522ff8ae
Fix strip_filename for URLs with query parameters
2017-03-23 16:47:01 +01:00
tresf
f1673eec8e
Fix high-cpu when downloading
...
Closes #1389
2017-03-22 20:22:22 -07:00
tresf
e8f26de74c
Revert "Throttle progress bar output"
...
This reverts commit 01d9b95d4e .
2017-03-22 18:58:29 -07:00
Simon Hartcher
01d9b95d4e
Throttle progress bar output
...
- Fixes #1389
2017-03-22 20:26:14 +11:00
Richard Kuhnt
9a650799e0
Strip filename from referer url
2017-03-21 17:52:10 +01:00
Richard Kuhnt
c682723d99
Add referer-header to all webrequests
2017-03-19 16:29:27 +01:00
Richard Kuhnt
0ba415d7d2
Show warning only if hash extraction is used
2017-03-18 22:16:13 +01:00
Richard Kuhnt
e7a54d802b
Show warning hash couldn't be found in hashurl
2017-03-18 22:06:20 +01:00
Rémy
4fb5bb2acb
autoupdate extract hash with original filename
2017-03-12 20:12:43 +01:00