aboutsummaryrefslogtreecommitdiff
path: root/src/create_pkg.cc
diff options
context:
space:
mode:
authordacctal <120422854+dacctal@users.noreply.github.com>2026-03-14 12:11:52 +0000
committerdacctal <120422854+dacctal@users.noreply.github.com>2026-03-14 12:11:52 +0000
commit2a6b92ed130ade1ea7542ee210e6957427a0aa81 (patch)
tree1e235b2116feddd3dcde0db9135ce9871801e2f3 /src/create_pkg.cc
parent97d70a6f8252b15928ca7f51386df791dedf0067 (diff)
lua build system integration
Diffstat (limited to 'src/create_pkg.cc')
-rw-r--r--src/create_pkg.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/create_pkg.cc b/src/create_pkg.cc
index b243afd..5cea49e 100644
--- a/src/create_pkg.cc
+++ b/src/create_pkg.cc
@@ -10,6 +10,9 @@ Pkg create_pkg(std::string arg) {
if (arg.rfind("http", 0) == 0) {
pkg.url = arg;
pkg.name = name_from_url(arg);
+ } else if (arg == ".") {
+ pkg.url = "";
+ pkg.name = name_from_url(fs::current_path().string());
}
pkg.ver = "HEAD";