Skip to content

[Checkver] Support skipping up to date manifests#2624

Merged
r15ch13 merged 11 commits intoScoopInstaller:masterfrom
Ash258:dev-checkver
Oct 3, 2018
Merged

[Checkver] Support skipping up to date manifests#2624
r15ch13 merged 11 commits intoScoopInstaller:masterfrom
Ash258:dev-checkver

Conversation

@Ash258
Copy link
Copy Markdown
Contributor

@Ash258 Ash258 commented Sep 26, 2018

Further testing is welcomed and required i think.

How it look:

PS D:\MEGA\Projects\SCOOP-Fork> .\bin\checkver.ps1 * "D:\MEGA\Projects\ScoopAsh258" -s
FRD: 0.9u4 (scoop version is 1.0beta)
Texlive: 2018.09.26 (scoop version is 2018.09.01) autoupdate available

PS D:\MEGA\Projects\SCOOP-Fork> .\bin\checkver.ps1 * "D:\MEGA\Projects\ScoopAsh258"
GVD: 2.1
FRD: 0.9u4 (scoop version is 1.0beta)
AirSkin: 2018-0805
TS3: 3.2.2
Aida64Bu: 5.98.4800
CosMOS: 5.0.3
BleachBit: 2.0
Texlive: 2018.09.26 (scoop version is 2018.09.01) autoupdate available
PostInstall: 2.8
CCleanerPro: 5.47.6716
CosMOSBeginner: 5.0.2.0
TotalCommander: 9.21a
...

@Ash258 Ash258 changed the title [Checkver] Support skipping up to date manifest [Checkver] Support skipping up to date manifests Sep 27, 2018
Copy link
Copy Markdown
Member

@r15ch13 r15ch13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but some small changes are required 👍

Comment thread bin/checkver.ps1 Outdated
Comment thread bin/checkver.ps1
Comment thread bin/checkver.ps1 Outdated
Comment thread bin/checkver.ps1 Outdated
Comment thread bin/checkver.ps1 Outdated
Comment thread bin/checkver.ps1

write-host "$ver" -f darkred -nonewline
write-host " (scoop version is $expected_ver)" -NoNewline
$update_available = (compare_versions $expected_ver $ver) -eq -1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$updateAvailable or $UpdateAvailable or $update_available. Combining snake_case and camelCase looks awkward 😁

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong regex for rename all occurancies

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there this $update_available check? You already know, there is version mismatch if you use $ver -eq $expected_ver

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is only to determine if it's upgrade or downgrade?

c

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, it's pretty much the cause of automated downgrades, now that I think about it.
compare_versions should be used instead of $ver -eq $expected_ver, I guess.

@Ash258
Copy link
Copy Markdown
Contributor Author

Ash258 commented Oct 3, 2018

Anything else need to be added / fixed. Do you need any help with wiki or something else?
I am still not sure about that compare_versions, but now it works as before and it could be inspected later.

@r15ch13 r15ch13 merged commit 63deba0 into ScoopInstaller:master Oct 3, 2018
@Ash258 Ash258 deleted the dev-checkver branch October 4, 2018 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants