summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-05-01 08:38:19 +0000
committerMika Havela <mika.havela@gmail.com>2008-05-01 08:38:19 +0000
commit90ca8478bc3dedfd1f331d744a2367d800b2e58c (patch)
tree1bfb1ce2bdd580e5b89e07835ba9243c4ef68fb0
parentda880cee19e82ab4770ee3fe5bf362213cc96d10 (diff)
downloadacf-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
-rw-r--r--Makefile2
-rw-r--r--apk-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ca84155..fdba351 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
APP_NAME=apk
PACKAGE=acf-$(APP_NAME)
-VERSION=0.0.1
+VERSION=0.1.0
APP_DIST=\
apk* \
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