[pkg] Fallback the number of lines before packages listing to 0
This commit is contained in:
parent
3bd7b59b2c
commit
bfc0922f6e
|
@ -3,6 +3,8 @@
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
||||||
- [mdir] Remove trailing semicolon at the end of command
|
- [mdir] Remove trailing semicolon at the end of command
|
||||||
|
- [pkg] Fix widget on Arch, Arch C, FreeBSD and Mandriva:
|
||||||
|
attempt to perform aithmetic on nil value (field 'sub')
|
||||||
|
|
||||||
# Changes in 2.4.0
|
# Changes in 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
-- Copyright (C) 2017 getzze <getzze@gmail.com>
|
-- Copyright (C) 2017 getzze <getzze@gmail.com>
|
||||||
-- Copyright (C) 2017 mutlusun <mutlusun@github.com>
|
-- Copyright (C) 2017 mutlusun <mutlusun@github.com>
|
||||||
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
|
-- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
|
||||||
|
-- Copyright (C) 2020 Elmeri Niemelä <niemela.elmeri@gmail.com>
|
||||||
--
|
--
|
||||||
-- This file is part of Vicious.
|
-- This file is part of Vicious.
|
||||||
--
|
--
|
||||||
|
@ -30,14 +31,14 @@ local helpers = require("vicious.helpers")
|
||||||
local pkg_all = {}
|
local pkg_all = {}
|
||||||
|
|
||||||
local PKGMGR = {
|
local PKGMGR = {
|
||||||
["Arch"] = { cmd = "pacman -Qu" },
|
["Arch"] = { cmd = "pacman -Qu", sub = 0 },
|
||||||
["Arch C"] = { cmd = "checkupdates" },
|
["Arch C"] = { cmd = "checkupdates", sub = 0 },
|
||||||
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 1 },
|
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 1 },
|
||||||
["Debian"] = { cmd = "apt list --upgradable", sub = 1 },
|
["Debian"] = { cmd = "apt list --upgradable", sub = 1 },
|
||||||
["Ubuntu"] = { cmd = "apt list --upgradable", sub = 1 },
|
["Ubuntu"] = { cmd = "apt list --upgradable", sub = 1 },
|
||||||
["Fedora"] = { cmd = "dnf check-update", sub = 2 },
|
["Fedora"] = { cmd = "dnf check-update", sub = 2 },
|
||||||
["FreeBSD"] = { cmd = "pkg version -I -l '<'" },
|
["FreeBSD"] = { cmd = "pkg version -I -l '<'", sub = 0 },
|
||||||
["Mandriva"] = { cmd = "urpmq --auto-select" }
|
["Mandriva"] = { cmd = "urpmq --auto-select", sub = 0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- {{{ Packages widget type
|
-- {{{ Packages widget type
|
||||||
|
|
Loading…
Reference in New Issue