diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-05-01 08:38:19 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-05-01 08:38:19 +0000 |
commit | 90ca8478bc3dedfd1f331d744a2367d800b2e58c (patch) | |
tree | 1bfb1ce2bdd580e5b89e07835ba9243c4ef68fb0 /apk-model.lua | |
parent | da880cee19e82ab4770ee3fe5bf362213cc96d10 (diff) | |
download | acf-apk-tools-90ca8478bc3dedfd1f331d744a2367d800b2e58c.tar.bz2 acf-apk-tools-90ca8478bc3dedfd1f331d744a2367d800b2e58c.tar.xz |
Updated regexpr to solve a small bug.
Updated versionnumber in Makefile
git-svn-id: svn://svn.alpinelinux.org/acf/apk/trunk@1060 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'apk-model.lua')
-rw-r--r-- | apk-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apk-model.lua b/apk-model.lua index 4a7962b..f281dd0 100644 --- a/apk-model.lua +++ b/apk-model.lua @@ -18,7 +18,7 @@ get_loaded_packages = function() local loaded = {} for line in f:lines() do local temp = {} - temp.name = string.match(line, "(.+)%-%d.*") + temp.name = string.match(line, "(.-)-%d+.*") temp.version, temp.description = string.match(line, "([^ ]+) %- (.+)") loaded[#loaded+1] = temp end |