summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pm.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/pm.lua b/pm.lua
index b63c2bc..cda18c0 100644
--- a/pm.lua
+++ b/pm.lua
@@ -61,7 +61,13 @@ local function manifest(pkgname)
end
end
- if not files_present then files[pkgname..".lua"]=true end
+ if not files_present then
+ local default_filename = pkgname .. ".lua"
+ if not pkgname:match("%.") then
+ default_filename = pkgname
+ end
+ files[default_filename]=true
+ end
local man = {files=files,deps=deps}
_manifests[pkgname] = man
return man