projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d75f3
)
libs/ipkg: give caller more control over filter pattern
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 15 Oct 2011 03:10:19 +0000
(
03:10
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 15 Oct 2011 03:10:19 +0000
(
03:10
+0000)
libs/ipkg/luasrc/model/ipkg.lua
patch
|
blob
|
history
diff --git
a/libs/ipkg/luasrc/model/ipkg.lua
b/libs/ipkg/luasrc/model/ipkg.lua
index 73fa3c305c13ce38ccffc73b21187ec3a6305782..d0d9788fd8be6c861a74aaead8ec23a06026608c 100644
(file)
--- a/
libs/ipkg/luasrc/model/ipkg.lua
+++ b/
libs/ipkg/luasrc/model/ipkg.lua
@@
-158,7
+158,9
@@
end
-- List helper
function _list(action, pat, cb)
- local fd = io.popen(ipkg .. " " .. action .. (pat and " '*" .. pat:gsub("'", "") .. "*'" or ""))
+ local fd = io.popen(ipkg .. " " .. action ..
+ (pat and (" '%s'" % pat:gsub("'", "")) or "")) -- .. " | grep -vE '^ '")
+
if fd then
local name, version, desc
while true do