initial fix

This commit is contained in:
MihailRis
2025-09-21 23:46:09 +03:00
parent 7dab722561
commit f02e6c65d8
2 changed files with 32 additions and 22 deletions
+8 -1
View File
@@ -115,7 +115,14 @@ static int l_pack_get_info(
throw std::runtime_error("");
}
lua::pushfstring(L, "%s%s@%s%s", prefix.c_str(), dpack.id.c_str(), dpack.op.c_str(), dpack.version.c_str());
lua::pushfstring(
L,
"%s%s@%s%s",
prefix.c_str(),
dpack.id.c_str(),
dpack.op != "=" ? dpack.op.c_str() : "",
dpack.version.c_str()
);
lua::rawseti(L, i + 1);
}
lua::setfield(L, "dependencies");