From 4bc00673a0498a92c63bbcc549842f82710cd265 Mon Sep 17 00:00:00 2001 From: Matt Housh Date: Wed, 16 Jul 2014 15:40:23 -0500 Subject: [PATCH] Fix incorrect handling of .inactive ports files during upgrade --- iso/bin/setup | 12 +++++++++++- iso/bin/setup-helper | 9 --------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/iso/bin/setup b/iso/bin/setup index 3049b72..f793a4b 100755 --- a/iso/bin/setup +++ b/iso/bin/setup @@ -306,7 +306,17 @@ main() { (/usr/bin/setup-helper $ROOT &> $helperlogfile) | do_dialog \ --title " Please wait [3.0 -> 3.1 check]" --gauge "" 8 60 0 fi - install_packages + install_packages + + # one-time fix for .inactive ports files + if [ -f $ROOT/etc/ports/contrib.rsync.inactive -a -f $ROOT/etc/ports/contrib.rsync ]; then + mkdir -p $ROOT/var/lib/pkg/rejected/etc/ports + mv -f $ROOT/etc/ports/contrib.rsync.inactive $ROOT/var/lib/pkg/rejected/etc/ports/contrib.rsync + fi + if [ -f $ROOT/etc/ports/compat-32.rsync.inactive -a -f $ROOT/etc/ports/compat-32.rsync ]; then + mkdir -p $ROOT/var/lib/pkg/rejected/etc/ports + mv -f $ROOT/etc/ports/compat-32.rsync.inactive $ROOT/var/lib/pkg/rejected/etc/ports/compat-32.rsync + fi cat $helperlogfile 2> /dev/null } diff --git a/iso/bin/setup-helper b/iso/bin/setup-helper index 7dfd35b..a84b4d1 100755 --- a/iso/bin/setup-helper +++ b/iso/bin/setup-helper @@ -138,12 +138,3 @@ inject_packages eudev remove_packages net-tools traceroute inject_packages inetutils - -# update the contrib and compat-32 rsync files if they're active -if [ -f $ROOT/etc/ports/contrib.rsync ]; then - mv -f $ROOT/etc/ports/contrib.rsync{.inactive,} -fi - -if [ -f $ROOT/etc/ports/compat-32.rsync ]; then - mv -f $ROOT/etc/ports/compat-32.rsync{.inactive,} -fi