Merge pull request #150 from kodybrown/master

Added --force flag, gibo, and rktools2k3
This commit is contained in:
Luke Sampson
2014-08-23 07:59:55 +10:00
3 changed files with 113 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"version": "1.0.3",
"homepage": "https://github.com/simonwhitaker/gibo",
"license": "https://github.com/simonwhitaker/gibo/blob/master/UNLICENSE",
"description": "gibo (short for .gitignore boilerplates) is a shell script to help you easily access .gitignore boilerplates from github.com/github/gitignore.",
"url": "https://github.com/simonwhitaker/gibo/archive/master.zip",
"hash": "a5900f6be433b3bcfef1cfb18fc1deb7efc2518e388e7b94fb9c16b6d995e9c2",
"extract_dir": "gibo-master",
"bin": [
"gibo.bat"
]
}
+96
View File
@@ -0,0 +1,96 @@
{
"homepage": "https://github.com/kodybrown/rktools2k3",
"version": "1.0",
"url": "https://github.com/kodybrown/rktools2k3/archive/master.zip",
"hash": "ca60a82f443988c66ba0e5c16816adaae826b21a29e5c8b9777699b172f9b4cd",
"extract_dir": "rktools2k3-master",
"bin": [
"adlb.exe",
"atmarp.exe",
"cdburn.exe",
"chklnks.exe",
"chknic.exe",
"compress.exe",
"confdisk.exe",
"consume.exe",
"creatfil.exe",
"custreasonedit.exe",
"delprof.exe",
"dh.exe",
"diskraid.exe",
"diskuse.exe",
"dvdburn.exe",
"empty.exe",
"getcm.exe",
"gpmonitor.exe",
"gpotool.exe",
"hlscan.exe",
"ifmember.exe",
"iniman.exe",
"instcm.exe",
"instexnt.exe",
"instsrv.exe",
"intfiltr.exe",
"kernrate.exe",
"klist.exe",
"linkd.exe",
"linkspeed.exe",
"list.exe",
"lockoutstatus.exe",
"logtime.exe",
"lsreport.exe",
"lsview.exe",
"memmonitor.exe",
"memtriage.exe",
"mibcc.exe",
"mqcast.exe",
"mqcatch.exe",
"nlsinfo.exe",
"now.exe",
"ntimer.exe",
"ntrights.exe",
"oh.exe",
"oleview.exe",
"pathman.exe",
"permcopy.exe",
"perms.exe",
"pfmon.exe",
"pmon.exe",
"printdriverinfo.exe",
"qgrep.exe",
"qtcp.exe",
"rassrvmon.exe",
"rcontrolad.exe",
"regini.exe",
"regview.exe",
"remapkey.exe",
"reportgen.exe",
"robocopy.exe",
"rpccfg.exe",
"rpcdump.exe",
"rpcping.exe",
"rpings.exe",
"rqc.exe",
"rqs.exe",
"setprinter.exe",
"showacls.exe",
"showperf.exe",
"showpriv.exe",
"sleep.exe",
"sonar.exe",
"splinfo.exe",
"srvany.exe",
"srvcheck.exe",
"srvinfo.exe",
"ssdformat.exe",
"subinacl.exe",
"tail.exe",
"tccom.exe",
"tcmon.exe",
"timeit.exe",
"timezone.exe",
"tsctst.exe",
"vadump.exe",
"vfi.exe"
]
}
+5 -4
View File
@@ -3,7 +3,7 @@
# Help: 'scoop update' updates Scoop to the latest version.
# 'scoop update <app>' installs a new version of that app, if there is one.
#
# You can use '*' in place of <app> to update all apps.
# You can use '*' in place of <app> to update all apps.
#
# Options:
# --global, -g update a globally installed app
@@ -17,9 +17,10 @@
. "$psscriptroot\..\lib\depends.ps1"
. "$psscriptroot\..\lib\config.ps1"
$opt, $apps, $err = getopt $args 'g' 'global'
$opt, $apps, $err = getopt $args 'gf' 'global','force'
if($err) { "scoop update: $err"; exit 1 }
$global = $opt.g -or $opt.global
$force = $opt.f -or $opt.force
function update_scoop() {
$tempdir = versiondir 'scoop' 'update'
@@ -78,7 +79,7 @@ function update($app, $global) {
$version = latest_version $app $bucket $url
if($old_version -eq $version) {
if(!$force -and ($old_version -eq $version)) {
warn "the latest version of $app ($version) is already installed."
"run 'scoop update' to check for new versions."
return
@@ -100,7 +101,7 @@ function update($app, $global) {
"installing $app ($version)"
$dir = ensure (versiondir $app $version $global)
# save info for uninstall
save_installed_manifest $app $bucket $dir $url
save_install_info @{ 'architecture' = $architecture; 'url' = $url; 'bucket' = $bucket } $dir