Skip to content
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

[Checkver] Support skipping up to date manifests #2624

Merged
merged 11 commits into from
Oct 3, 2018

Conversation

Ash258
Copy link
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
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 👍

bin/checkver.ps1 Outdated Show resolved Hide resolved
bin/checkver.ps1 Show resolved Hide resolved
bin/checkver.ps1 Outdated Show resolved Hide resolved
bin/checkver.ps1 Outdated Show resolved Hide resolved
bin/checkver.ps1 Outdated Show resolved Hide resolved
bin/checkver.ps1 Outdated
continue
}

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
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
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
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
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
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
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.

None yet

2 participants