From 8be134239ba7bd25850c0f5987bdb630eeeb0bb8 Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Tue, 2 Feb 2021 21:48:38 +0100 Subject: [PATCH] Fix darlinghq/darling#920 --- src/pkg/Installer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pkg/Installer.cpp b/src/pkg/Installer.cpp index da297df..da2b1b6 100644 --- a/src/pkg/Installer.cpp +++ b/src/pkg/Installer.cpp @@ -90,7 +90,10 @@ void Installer::installPackage() throw std::runtime_error(ss.str()); } - installPayload(pkgref.path.c_str() + 1); + const char* path = pkgref.path.c_str(); + if (*path == '#') + path++; + installPayload(path); } } }