Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoore134 committed May 20, 2019
1 parent 3c274da commit 44745ec
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func checkFlavorSwitch() {
}
}

func checkbasebootstrapswitch() {
func checkBaseBootstrapSwitch() {
// Dirty work-around to a bug in pkg today
//
// Can be removed at a later date when pkg handles more gracefully
Expand All @@ -549,15 +549,16 @@ func checkbasebootstrapswitch() {

// No? Lets prepare to move to this broken out base pkg
// Files to remove from pkg sql database
var conflictfiles []string
conflictfiles = append(conflictfiles, "/libexec/ld-elf.so.1")
conflictfiles = append(conflictfiles, "/libexec/ld-elf32.so.1")
conflictfiles = append(conflictfiles, "/usr/lib/libc.so")
conflictfiles = append(conflictfiles, "/usr/lib/libm.so")
conflictfiles = append(conflictfiles, "/usr/lib/libthr.so")
conflictfiles = append(conflictfiles, "/lib/libc.so.7")
conflictfiles = append(conflictfiles, "/lib/libm.so.5")
conflictfiles = append(conflictfiles, "/lib/libthr.so.3")
var conflictfiles = []string{
"/libexec/ld-elf.so.1",
"/libexec/ld-elf32.so.1",
"/usr/lib/libc.so",
"/usr/lib/libm.so",
"/usr/lib/libthr.so",
"/lib/libc.so.7",
"/lib/libm.so.5",
"/lib/libthr.so.3",
}

// Go through and do database surgery now....
for i := range conflictfiles {
Expand Down Expand Up @@ -707,7 +708,7 @@ func updateincremental(force bool) error {
checkbaseswitch()

// Check if we needto cleanup move to new bootstrap clibs
checkbasebootstrapswitch()
checkBaseBootstrapSwitch()

// Make sure the BE has a valid resolv.conf
resolv_dest := defines.STAGEDIR + "/etc/resolv.conf"
Expand Down

0 comments on commit 44745ec

Please sign in to comment.