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

Commit

Permalink
Sigh, the multiple pkgng repos bites again. When we do a major update or
Browse files Browse the repository at this point in the history
branch change, make sure to move the non-working FreeBSD.conf repo file
out of the way first.
  • Loading branch information
Kris Moore committed Dec 26, 2013
1 parent 488f008 commit f566c15
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src-sh/pc-updatemanager/pc-updatemanager
Expand Up @@ -427,6 +427,11 @@ finish_major_fbsd_update() {
read tmp
fi

# Remove this, causes all kinds of havok during the update
if [ -e "/etc/pkg/FreeBSD.conf" ] ; then
mv /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.dist
fi

# Now its time to force a pkg-update of all packages to their new FreeBSD compiled versions
pc-updatemanager pkgupdate -f
if [ $? -ne 0 ] ; then
Expand Down Expand Up @@ -579,7 +584,10 @@ update_pkgs()
exit_err "Invalid option $1 passed"
fi

export EVENT_PIPE
# Update the DB first
pkg-static update -f

# Look for conflicts
check_pkg_conflicts "upgrade -FUy $1"
if [ $? -ne 0 ] ; then
exit 1
Expand Down

0 comments on commit f566c15

Please sign in to comment.