Skip to content

Commit

Permalink
Fix windows wrappers not actually updating
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed May 12, 2024
1 parent 2942199 commit 8d2a09a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions core/src/main/resources/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#@formatter:off
- version: "v6.2.1"
changes:
- type: "fix"
text: "Unfortunately the automatic update is broken with the new wrappers introduced in 6.0.0. And I tested it so thoroughly (I thought). NZBHydra would shut down for an update but not actually update, with automatic updates resulting in a loop :-("
- type: "fix"
text: "Days without a buggy release: 0. Fix invalid link returned from DETAILS function. See #943"
- type: "fix"
Expand Down
3 changes: 2 additions & 1 deletion other/gowrapper/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ func doUpdate() {
LogFatalIfError(err)

for _, f := range r.File {
if strings.ToLower(f.Name) != "nzbhydra2" && !strings.HasSuffix(strings.ToLower(f.Name), ".exe") && strings.ToLower(f.Name) != "core.exe" {
//Do not update the wrapper executables
if !strings.HasSuffix(strings.ToLower(f.Name), ".exe") || strings.ToLower(f.Name) == "core.exe" {
if f.FileInfo().IsDir() {
continue
}
Expand Down
2 changes: 2 additions & 0 deletions other/gowrapper/base/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,7 @@ func setupLogger() {
}
fileLogger.ExitFunc = Exit
consoleLogger.ExitFunc = Exit
fileLogger.Level = logrus.DebugLevel
consoleLogger.Level = logrus.InfoLevel

}
2 changes: 1 addition & 1 deletion releases/windows-release/include/NZBHydra2 Console.exe
Git LFS file not shown
4 changes: 2 additions & 2 deletions releases/windows-release/include/NZBHydra2.exe
Git LFS file not shown

0 comments on commit 8d2a09a

Please sign in to comment.