Commit Graph
73 Commits
Author SHA1 Message Date
Richard Kuhnt f381b5865f Fix scoop update force option (closes #1701) 2017-09-11 21:07:01 +02:00
Winter Young c86c727084 Fix scoop status error by improving scoop update (#1699)
* fix git status error
* Fix setting the lastupdate in is_scoop_outdated()
2017-09-10 19:46:19 +02:00
Dave Andersen 330fcaf93e fix #1628 (scoop update --ignore-cache option broken) (#1629)
* fix #1628

* remove unintended change in merge

* Add --no-cache to install and to all parts of the update command
2017-09-01 22:47:11 +02:00
Richard Kuhnt 0b5813563d Improve update command output and behavior 2017-08-30 22:13:32 +02:00
Richard Kuhnt 4ab82f60bb Run scoop update every so often before installing/updating apps
This change should reduce issues with outdated manifests/hashes/URLs.
Every successful execution of `scoop update` will save the date/time to `~\.scoop`
Every execution of `scoop update x` or `scoop install x` will check last saved date/time and run `scoop update` beforehand if the last run was more than 3 hours ago.
2017-08-30 17:17:38 +02:00
Richard Kuhnt e57c2ce08e Use write-host in update command 2017-08-30 17:08:30 +02:00
Richard Kuhnt e74d7de883 Remove unused and commented code from update command 2017-08-30 15:11:14 +02:00
Richard Kuhnt 84bd16b82d Improve ensure_all_installed() behavior and move it to core.ps1
This change removes the use of abort() and exit 1 from ensure_all_installed() so the command doesn't stop if only one app in the list is not found.
2017-08-30 15:10:45 +02:00
Richard Kuhnt 9b3e7c83f9 Move applist() from update/cleanup commad to core 2017-08-30 15:06:54 +02:00
Richard Kuhnt 35c93ab4aa Remove blocking abort from scoop update 2017-07-10 21:11:35 +02:00
Rémy 7b50a43049 Ensure there is an $architecture on updates if the old manifest is not found
If the old manifest is not available no $architecture is loaded
resulting in an error while installing the update.

This happend for example for php if there was a conf directory along the
versions. `conf` will be picked up as latest version but there is no
manifest inside. #1185
2017-03-31 00:54:20 +02: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 a903d7e395 reuse install_app function in scoop update 2017-03-25 16:28:06 +01:00
Simon Hartcher c7179c0aad Fix progress bar when updating
`core.ps1` has a `dl` function which overrides the `install.ps1`
function of the same name. Fixed by importing `install.ps1` last
2017-02-16 22:06:47 +11:00
Luke Sampson 61547cea7c Update more UI messages for consistency. 2017-02-13 20:29:54 +11:00
Luke Sampson d2a8f6798f Update UI messages for consistency. 2017-02-13 20:25:56 +11:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Luke Sampson b21b6a2be1 Add 'suggest' directive as an alternative to 'depends'. Allows manifest authors to suggest apps with complementary features, without installing them automatically (fixes #1263) 2017-02-12 16:37:02 +11:00
Luke Sampson d15bb91cb7 Add support for installing PowerShell modules (see #1246) 2017-01-22 14:44:54 +11:00
Luke Sampson 8b1871b20d fix: uninstall fails to remove architecture-specific shims (fixes #1191) 2017-01-04 17:42:32 +11:00
Luke Sampson abd6d0e6c5 Use a 'current' directory junction for the current version of apps, so that path is maintained across app updates (see #1179) 2016-12-31 22:12:53 +11:00
Luke Sampson 597198eb8a don't show update succeeded when git pull fails 2016-11-13 16:25:38 +11:00
Felipe do Rego Pinto fa17c2bd4c Command 'scoop update' delete scoop if download fail. (#1120)
* try catch on update

fixes #1118

* deleting the right dir

* added -ea stop to git command

* added try catch to bucket update

* removing space

* Removing -ea from git command, since it isn´t a scriptlet

* When git clone fail, it does not create de $newdir, so I changed the code
to check for this path.

When the git pull fail, nothing happens, so It doesnt need any changes

Also, git error could not be catch in powersheel exception

* removing blank lines
2016-11-13 16:12:41 +11:00
Luke Sampson 8c8bfc1132 support -i, --independent flag for scoop update (see #1064) 2016-10-06 18:50:43 +10:00
Luke Sampson ef7bcce6f7 move shortcut functions to separate file 2016-09-21 09:41:01 +10:00
Luke Sampson 0bcb44a281 implement architecture-specific shims 2016-06-24 07:22:04 +10:00
Luke Sampson e37577b072 handle username with space for git commands (fixes #885) 2016-06-02 22:54:02 +10:00
Luke Sampson 376630fd80 Fix: first scoop update fails because scoop deletes itself too early (needs to call itself to get proxy config for git clone) 2016-06-01 09:09:02 +10:00
Luke Sampson 6e921e9b2f allow .exe installers to access $global variable (see #854) 2016-05-18 12:36:36 +10:00
Simon Hartcher 637480f5b8 Fix scoop not using proxy for git commands (#843)
Commands that call git from scoop will now pass proxy details. The
command is executed using `cmd` to avoid polluting the user's
environment as the variables set will die with the process.

Fixes #842
2016-05-09 17:55:05 +10:00
Luke Sampson fff82e2d72 add architecture-specific support for pre- and post-install (see #783) 2016-04-16 11:58:59 +10:00
Chawye Hsu 6bf5ffa032 Use https protocol
...to prevent connection reset.
2016-02-28 16:41:14 +08:00
Roy Ivy III 6d9bca805f whitespace cleanup
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Simon Hartcher 53a3224b3a Add --quiet opt to update command to suppress extraneous messages 2015-06-04 12:44:28 +10:00
Luke Sampson bc1a8e4945 brute force fix for powershell alias problems 2015-05-11 20:17:59 +10:00
Simon Hartcher 735ee17571 Fixed status command. Added support for custom repo/branch. 2015-04-04 14:48:41 +11:00
Simon Hartcher 94ae0cc92a Changed scoop update to use git for updating self 2015-04-04 14:22:23 +11:00
Simon Hartcher 2c31213431 Added simplistic nightly support
When an app versioned as "nightly" is installed (or updated),
the current date is appended to the version which changes the
version directory to nightly-yyyymmdd.

Fixes #181
2015-03-30 23:32:08 +11:00
Simon Hartcher cecb04542c Added --no-cache option to scoop update
Ignores cache when updating an app
2015-03-28 17:45:10 +11:00
Luke Sampson 0d96c0139c mention --force argument in help for update command 2014-10-12 19:04:45 +10:00
Kody Brown 62b9f5d6a1 Added --force option to update command. This is very particularly useful so I don't have to increment version numbers while creating scoop packages. 2014-08-16 13:39:10 -06:00
Kody Brown 89dcbefbc5 Renamed pre_create_shims to pre_install. Much better. 2014-08-14 22:21:14 -06:00
Kody Brown c12463b12d Added call to before_create_shims to scoop-update.ps1?update(). 2014-08-14 20:31:28 -06:00
Luke Sampson cd5bfaecc8 use 'scoop update *' syntax (see #111), simplified switches for update 2014-08-15 08:47:14 +10:00
Kody Brown 75caced126 Added support for updating all apps at the same time. 2014-08-14 11:48:17 -06:00
Luke Sampson b4ab131d91 add proxy support, see #86 2014-05-12 12:42:55 +10:00
Luke Sampson 69c11d449a Revert "updated for new color naming in concfg (see lukesampson/concfg#3"
This reverts commit d4ff02bbef.
2014-03-17 18:08:33 +10:00
Luke Sampson d4ff02bbef updated for new color naming in concfg (see lukesampson/concfg#3 2014-03-17 15:58:49 +10:00
Luke Sampson 1c40340f7c update now removes previous version's environment variables changes 2014-03-10 21:00:53 +10:00
Luke Sampson 7909e692b6 scoop update: auto-install missing dependencies 2014-01-01 08:40:37 +10:00