Skip to content

Commit

Permalink
fix QPKG version display order when QPKG is upgradable
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Apr 16, 2024
1 parent 375e340 commit 227007b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
35 changes: 18 additions & 17 deletions support/sherpa-manager.source
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ ShowResults()
if [[ $generate_show_report = true ]]; then
if [[ $useropt_show_log_last = true ]]; then
ReleaseLockfile
Log.Last:View
ViewLogLast
elif [[ $useropt_show_log_tail = true ]]; then
ReleaseLockfile
Log.Tail:View
ViewLogTail
elif [[ $useropt_show_backups = true ]]; then
Report.Backups:Show
ShowReportBackups
elif [[ $useropt_show_versions = true ]]; then
Report.Versions:Show
ShowReportVersions
elif [[ $useropt_show_dependencies = true ]]; then
Report.Dependencies:Show
ShowReportDependencies
elif [[ $useropt_show_packages = true ]]; then
Report.Packages:Show
ShowReportPackages
elif [[ $useropt_show_repos = true ]]; then
Report.Repos:Show
ShowReportRepos
elif [[ $useropt_show_status = true ]]; then
Report.Statuses:Show
ShowReportStatuses
show_package_actions_ok=false
show_package_actions_skipped=false
show_package_actions_failed=false
Expand Down Expand Up @@ -4398,6 +4398,8 @@ DisplayAsStatusReportItemLine()

app_ver_msg+=$(QpkgGetApplVer "$qpkg_name")
status_msg=${CHARS_NORMAL}${status_msg}
ver_msg+=$(QpkgGetInstalledVer "$qpkg_name")

QPKGs-ISupgradable.Exist "$qpkg_name" && upgrade_ver=$(QpkgGetAvailVer "$qpkg_name")

if [[ -n $upgrade_ver ]]; then
Expand All @@ -4408,7 +4410,6 @@ DisplayAsStatusReportItemLine()
fi

path_msg+=$(QpkgGetInstallationPath)
ver_msg+=$(QpkgGetInstalledVer "$qpkg_name")
;;
muted)
if ! QpkgIsArchOK; then
Expand Down Expand Up @@ -5742,7 +5743,7 @@ Help.Tips:Show()

}

Log.Last:View()
ViewLogLast()
{

# View only the last session log.
Expand All @@ -5762,7 +5763,7 @@ Log.Last:View()

}

Log.Tail:View()
ViewLogTail()
{

# View only the last session log.
Expand Down Expand Up @@ -6037,7 +6038,7 @@ ExtractTailFromLog()

}

Report.Versions:Show()
ShowReportVersions()
{

DisableDebugToArchiveAndFile
Expand Down Expand Up @@ -6869,7 +6870,7 @@ Help.Abbreviations:Show()

}

Report.Backups:Show()
ShowReportBackups()
{

FuncInit
Expand Down Expand Up @@ -6924,7 +6925,7 @@ Report.Backups:Show()

}

Report.Dependencies:Show()
ShowReportDependencies()
{

# Output:
Expand Down Expand Up @@ -6982,7 +6983,7 @@ Report.Dependencies:Show()

}

Report.Packages:Show()
ShowReportPackages()
{

# Output:
Expand Down Expand Up @@ -7023,7 +7024,7 @@ Report.Packages:Show()

}

Report.Repos:Show()
ShowReportRepos()
{

# Output:
Expand Down Expand Up @@ -7073,7 +7074,7 @@ Report.Repos:Show()

}

Report.Statuses:Show()
ShowReportStatuses()
{

# Output:
Expand Down
9 changes: 0 additions & 9 deletions workshop/issues.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
Observed issues:

* upgradable QPKG versions are shown in status report in wrong order:
-------------------------------------------------------------------------------------------------------------------------
• QPKG name: • QPKG statuses: • QPKG version (new): • App version: • QPKG installation path:
Entware - enabled, active 1.03a 1.03a /share/HDA_DATA/.qpkg/Entware
Glances - enabled, slow (240413)240406 3.4.0.5 /share/HDA_DATA/.qpkg/Glances
Headphones - enabled, active (240413)240406 0.6.1 /share/HDA_DATA/.qpkg/Headphones
HideThatBanner - enabled, active 240205 240205 /share/HDA_DATA/.qpkg/HideThatBanner
-------------------------------------------------------------------------------------------------------------------------

* When aborting sherpa, must also ensure child procs abort.
- Presently, if a child proc is waiting to check PID again, it doesn't abort.
- Try https://stackoverflow.com/a/2173421
Expand Down

0 comments on commit 227007b

Please sign in to comment.