repository

Carbs Linux repositories
git clone git://git.carbslinux.org/repository
Log | Files | Refs | README | LICENSE

commit bb47652a438bc8bdded3d4c4e980543467bcf01c
parent f1cf7fe05f1d58fa5b482272e70ab95948f0ae8f
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 24 Jul 2020 20:37:56 +0300

kiss: bootstrap to cpt

Diffstat:
Mcore/kiss/build | 6++++++
Dcore/kiss/message | 5-----
Acore/kiss/post-install | 21+++++++++++++++++++++
Mcore/kiss/version | 2+-
4 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/core/kiss/build b/core/kiss/build @@ -2,3 +2,9 @@ install -Dm755 kiss_path.sh "$1/etc/profile.d/kiss_path.sh" make PREFIX=/usr DESTDIR="$1" install + +printf '\033[1m%s\033[m\n' "" \ + "IMPORTANT" ""\ + " Post installation will update to the latest version of the package manager: CPT" \ + " This will automatically replace your /var/db/kiss directory to /var/db/cpt." \ + " Please do NOT create the /var/db/cpt directory by yourself. The update will handle this." "" diff --git a/core/kiss/message b/core/kiss/message @@ -1,5 +0,0 @@ -IMPORTANT: - -i686 users, i686 repository has been removed and merged -with the base. You will need to remove the repository -manually from your KISS_PATH. diff --git a/core/kiss/post-install b/core/kiss/post-install @@ -0,0 +1,21 @@ +#!/bin/sh -e + +export CPT_ROOT=$KISS_ROOT +kiss b cpt && kiss i cpt || exit 1 + +# Make sure we don't have /var/db/cpt already +if [ -d "$KISS_ROOT/var/db/cpt" ]; then + out "It seems like you already have /var/db/cpt, it might be dangerous to continue." \ + "Proceed? [Ctrl+C to cancel]" + read -r _ + mv "$KISS_ROOT/var/db/kiss/"* "$KISS_ROOT/var/db/cpt" +else + mv "$KISS_ROOT/var/db/kiss" "$KISS_ROOT/var/db/cpt" +fi + +set +f +sed -i 's|^/var/db/kiss/|/var/db/cpt/|' /var/db/cpt/installed/*/manifest + +CPT_PATH=$(echo "$KISS_PATH" | sed 's|/var/db/kiss/|/var/db/cpt/|g') +export CPT_PATH +cpt-remove kiss diff --git a/core/kiss/version b/core/kiss/version @@ -1 +1 @@ -2.3.0 1 +2.3.0 2