1
// Copyright 2015 Canonical Ltd.
2
// Copyright 2015 Cloudbase Solutions SRL
3
// Licensed under the LGPLv3, see LICENCE file for details.
8
"github.com/juju/utils/packaging"
11
// yumConfigurer is the PackagingConfigurer implementation for apt-based systems.
12
type yumConfigurer struct {
16
// RenderSource is defined on the PackagingConfigurer interface.
17
func (c *yumConfigurer) RenderSource(src packaging.PackageSource) (string, error) {
18
return src.RenderSourceFile(YumSourceTemplate)
21
// RenderPreferences is defined on the PackagingConfigurer interface.
22
func (c *yumConfigurer) RenderPreferences(src packaging.PackagePreferences) (string, error) {
23
// TODO (aznashwan): research a way of using yum-priorities in the context
24
// of single/multiple package pinning and implement it.
28
// ApplyCloudArchiveTarget is defined on the PackagingConfigurer interface.
29
func (c *yumConfigurer) ApplyCloudArchiveTarget(pack string) []string {
30
// TODO (aznashwan): implement target application when archive is available.