shared: Add Pack function
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
f6958ee378
commit
487633143d
@ -84,3 +84,8 @@ func VerifyFile(signedFile, signatureFile string, keys []string, keyserver strin
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// Pack creates an xz-compressed tarball.
|
||||
func Pack(filename, path string, args ...string) error {
|
||||
return RunCommand("tar", append([]string{"-cJf", filename, "-C", path}, args...)...)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user