diff options
author | ubq323 <ubq323@ubq323.website> | 2024-03-31 03:10:13 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-03-31 03:10:13 +0100 |
commit | f90cbd4bb477c0c13fa37f998ecf4896f99cb05a (patch) | |
tree | 100b821311091dc3313beaf91fa4658336bcc252 | |
parent | 22bd7e972f53db229f5198371c8d470615c166b5 (diff) |
pm
-rw-r--r-- | pm.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |