func SetTreePath(global bool, i abstract.Instance, c abstract.Container, tree string) {
	var root string
	if global {
		root = c.DistDir()
	} else {
		root = i.MountPoint()
	}
	config := `[default]` + "\n"
	config += `location = ` + path.Clean(tree) + "\n"
	d.ITEM("set tree path")
	err := ioutil.WriteFile(path.Join(root, "/etc/acbs/forest.conf"), []byte(config), 0644)
	d.ERR(err)
}
SetTreePath : config function to set the acbs search path
package packaging
import (
	"io/ioutil"
	"os"
	"os/exec"
	"path"
	"github.com/AOSC-Dev/ciel/internal/abstract"
	d "github.com/AOSC-Dev/ciel/display"
)
const (
	DefaultEditor     = "/usr/bin/editor"
	DefaultRepoConfig = "/etc/apt/sources.list.d/ciel-local.list"
)
func EditSourceList(global bool, i abstract.Instance, c abstract.Container) {
	var root string
	if global {
		root = c.DistDir()
	} else {
		root = i.MountPoint()
	}
	editor := editor()
	cmd := exec.Command(editor, path.Join(root, "/etc/apt/sources.list"))
	cmd.Stdin = os.Stdin
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	cmd.Run()
}