New backup 2025-07-05 19:30:06
This commit is contained in:
parent
b8b119da97
commit
6afa88b38f
3 changed files with 10 additions and 5 deletions
|
@ -271,9 +271,10 @@ $home-widget-border-color: rgba($color5,1);
|
|||
.details {
|
||||
font-size: 0.8em;
|
||||
color: $home-widget-subtitle-color;
|
||||
margin: 0px 10px;
|
||||
}
|
||||
.status {
|
||||
margin-right: 10px;
|
||||
margin: 0px 10px;
|
||||
}
|
||||
}
|
||||
image {
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
(button :onclick "notify-send '${software.package_name} is ${(software.up_to_date == 'true' ) ? 'up to date!' : 'outdated!'}' 'upstream: ${software.upstream_version}\\npackage: ${software.package_version}'"
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(label
|
||||
;; :xalign 0
|
||||
:halign "fill"
|
||||
:halign "start"
|
||||
:hexpand true
|
||||
:wrap false
|
||||
:truncate true
|
||||
|
@ -25,12 +26,14 @@
|
|||
:halign "end"
|
||||
(label
|
||||
:valign "end"
|
||||
:halign "end"
|
||||
:class "details"
|
||||
:text " ${software.upstream_version}")
|
||||
:text "${software.upstream_version} ")
|
||||
(label
|
||||
:valign "start"
|
||||
:halign "end"
|
||||
:class "details"
|
||||
:text " ${software.package_version}"))
|
||||
:text "${software.package_version} "))
|
||||
(label
|
||||
:halign "end"
|
||||
:class "status"
|
||||
|
|
|
@ -8,7 +8,8 @@ function get_package_info(){
|
|||
# echo "${i}"
|
||||
package_name=$(jq -r '.packageName' <<<"${i}")
|
||||
upstream_url=$(jq -r '.upstreamURL' <<<"${i}")
|
||||
package_version=$(dpkg-query -W -f='${Version}' "${package_name}")
|
||||
package_version=$(apt-cache show "${package_name}" | grep Version | awk '{print $2}' | head -n1)
|
||||
# package_version=$(dpkg-query -W -f='${Version}' "${package_name}")
|
||||
upstream_version=$(lastversion "${upstream_url}")
|
||||
if [[ "${package_version}" == *"${upstream_version}"* ]]; then
|
||||
up_to_date='true'
|
||||
|
|
Loading…
Add table
Reference in a new issue