Skip to content

Commit

Permalink
Use shellescape on packagemaker path
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Sep 15, 2023
1 parent c82a269 commit 425611d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package1.0/portpkg.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ proc portpkg::package_pkg {portname portepoch portversion portrevision} {
if {$using_pkgbuild} {
set cmdline "$pkgbuild --root [shellescape ${destpath}] ${pkgresources} --info [shellescape $infofile] --install-location / --identifier org.macports.$portname"
} else {
set cmdline "PMResourceLocale=${language} $packagemaker --root [shellescape ${destpath}] --out [shellescape ${pkgpath}] ${pkgresources} --info [shellescape $infofile] --target $pkgtarget --domain system --id org.macports.$portname"
set cmdline "PMResourceLocale=${language} [shellescape $packagemaker] --root [shellescape ${destpath}] --out [shellescape ${pkgpath}] ${pkgresources} --info [shellescape $infofile] --target $pkgtarget --domain system --id org.macports.$portname"
}
if {${os.major} >= 10} {
set v [mp_version_to_apple_version $portepoch $portversion $portrevision]
Expand Down Expand Up @@ -193,7 +193,7 @@ proc portpkg::package_pkg {portname portepoch portversion portrevision} {
} else {
write_info_plist ${workpath}/Info.plist $portname $portversion $portrevision
write_description_plist ${workpath}/Description.plist $portname $portversion $description
system "$packagemaker -build -f [shellescape ${destpath}] -p [shellescape ${pkgpath}] -r [shellescape ${package.resources}] -i [shellescape ${workpath}/Info.plist] -d [shellescape ${workpath}/Description.plist]"
system "[shellescape $packagemaker] -build -f [shellescape ${destpath}] -p [shellescape ${pkgpath}] -r [shellescape ${package.resources}] -i [shellescape ${workpath}/Info.plist] -d [shellescape ${workpath}/Description.plist]"
}

file delete ${workpath}/Info.plist \
Expand Down

0 comments on commit 425611d

Please sign in to comment.