Fix libs download for release and add FS::mounpoint() getter

This commit is contained in:
me-no-dev 2023-10-06 16:11:09 +03:00
parent 822f252b35
commit 7cf353bdd1
3 changed files with 11 additions and 1 deletions

View file

@ -254,7 +254,7 @@ LIBS_PACKAGE_SRC_URL=`cat $PACKAGE_JSON_TEMPLATE | jq -r ".packages[0].tools[] |
# Download the libs package
echo "Downloading the libs archive ..."
# curl -o "$LIBS_PACKAGE_SRC_ZIP" -LJO --url "$LIBS_PACKAGE_SRC_URL" || exit 1
curl -o "$LIBS_PACKAGE_SRC_ZIP" -LJO --url "$LIBS_PACKAGE_SRC_URL" || exit 1
# Extract the libs package
echo "Extracting the archive ..."

View file

@ -300,6 +300,14 @@ bool FS::rmdir(const String &path)
return rmdir(path.c_str());
}
const char * FS::mountpoint()
{
if (!_impl) {
return NULL;
}
return _impl->mountpoint();
}
void FSImpl::mountpoint(const char * mp)
{

View file

@ -111,6 +111,8 @@ public:
bool rmdir(const char *path);
bool rmdir(const String &path);
const char * mountpoint();
protected:
FSImplPtr _impl;