diff --git a/cmd/prebuild/main.go b/cmd/prebuild/main.go index 25e422cfd..2002999a6 100644 --- a/cmd/prebuild/main.go +++ b/cmd/prebuild/main.go @@ -32,7 +32,7 @@ func init() { // Build tasks applied by default builder.Register( "userspace", // Resolve variable in the userspace profile - "dev", // Temporary fix for #74, #80 & #235 + "hotfix", // Temporary fix for #74, #80 & #235 ) // Compatibility with AppArmor 3 diff --git a/pkg/prebuild/builder/dev.go b/pkg/prebuild/builder/hotfix.go similarity index 60% rename from pkg/prebuild/builder/dev.go rename to pkg/prebuild/builder/hotfix.go index 19fbe409d..f7e6143b1 100644 --- a/pkg/prebuild/builder/dev.go +++ b/pkg/prebuild/builder/hotfix.go @@ -10,7 +10,7 @@ import ( ) var ( - regDev = util.ToRegexRepl([]string{ + regHotfix = util.ToRegexRepl([]string{ `Cx`, `cx`, `PUx`, `pux`, `Px`, `px`, @@ -18,19 +18,19 @@ var ( }) ) -type Dev struct { +type Hotfix struct { prebuild.Base } func init() { - RegisterBuilder(&Dev{ + RegisterBuilder(&Hotfix{ Base: prebuild.Base{ - Keyword: "dev", - Msg: "Apply test development changes", + Keyword: "hotfix", + Msg: "Temporary fix for #74, #80 & #235", }, }) } -func (b Dev) Apply(opt *Option, profile string) (string, error) { - return regDev.Replace(profile), nil +func (b Hotfix) Apply(opt *Option, profile string) (string, error) { + return regHotfix.Replace(profile), nil }