Documentation ¶
Overview ¶
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Copyright (c) 2014 Canonical Ltd.
Author: Jani Monoses <jani@ubuntu.com>
Index ¶
- Constants
- func AppendSlash(path string) string
- func Copytree(src, dest string, ignores []string)
- func CreateFakerootTarball(path, arcname string, ignores []string)
- func CreateTarball(path, arcname string, ignores []string)
- func EpochlessVersion(v string) string
- func Exists(path string) bool
- func ExitError(err error)
- func ExitMsg(msg string)
- func GetDirSize(dir string) string
- func NewArWriter(path string) (*arWriter, error)
- func Walk(path string, fn walkFunc, ignores []string)
- func WriteManifest(manifestPath string, m Manifest)
- type Manifest
Constants ¶
const SpecVersion = "0.4"
const StaticPreinst = `#! /bin/sh
echo "Click packages may not be installed directly using dpkg."
echo "Use 'click install' instead."
exit 1
`
Variables ¶
This section is empty.
Functions ¶
func Copytree ¶
cpa copies src to dest recursively, ignoring entries matching any of the ignore patterns
func CreateFakerootTarball ¶
create tarball with members' ownership set to root
func EpochlessVersion ¶
func GetDirSize ¶
Get total size of all files in a dir Output of "du -ks --apparent-size"