summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-03-31 03:10:13 +0100
committerubq323 <ubq323@ubq323.website>2024-03-31 03:10:13 +0100
commitf90cbd4bb477c0c13fa37f998ecf4896f99cb05a (patch)
tree100b821311091dc3313beaf91fa4658336bcc252
parent22bd7e972f53db229f5198371c8d470615c166b5 (diff)
pm
-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