aboutsummaryrefslogtreecommitdiff
path: root/pkgtools.go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2022-04-23 09:46:41 -0500
committerSlack Coder <slackcoder@server.ky>2022-04-23 11:32:42 -0500
commit5d4066dd1e90fa704b67384327af72b3ec121102 (patch)
tree28d7c331840f87c6954c80e469477d679868ad72 /pkgtools.go
parentf79877dd20bbf5fa51c8c0df50101c2547b9e91d (diff)
downloadpkgtools-go-5d4066dd1e90fa704b67384327af72b3ec121102.tar.xz
installpkg: Avoid using /install on target dir
Use a temporary randomly named directory named like 'installpkg-2052825695' for the package's metadata in its '/install' directory. It will help allow running multiple instances on the same target root directory by removing a point of conflict. Attempt to place this directory in the host's default temporary directory. If it does not exist, use the host's root path.
Diffstat (limited to 'pkgtools.go')
-rw-r--r--pkgtools.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgtools.go b/pkgtools.go
index aaffb75..5c8e928 100644
--- a/pkgtools.go
+++ b/pkgtools.go
@@ -219,7 +219,7 @@ type SlackwarePkg struct {
pkgInfo PackageInfo
}
-var _ ArchiveReader = (*SlackwarePkg)(nil)
+var _ TarReader = (*SlackwarePkg)(nil)
func OpenSlackwarePkg(fp string) (*SlackwarePkg, error) {
var pkg SlackwarePkg