From fd323deeea1eb42c594e1926a2ad94cb717ace7f Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Wed, 10 Oct 2012 13:44:45 +0200 Subject: [PATCH] Version 0.3beta - 10/Oct/2012 - Added slackware 14.0 in default configuration --- ChangeLog.txt | 3 +++ src/README | 17 ++++++++++++----- src/slackpkgplus.conf | 20 ++++++++++++++++---- src/slackpkgplus.sh | 2 ++ 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 4ffbbdb..dc2bbff 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,6 @@ +Version 0.3beta - 10/Oct/2012 + - Added slackware 14.0 in default configuration + Version 0.2beta - 28/Sep/2012 - renamed in 'slackpkg+' - allow to add multiple repositories diff --git a/src/README b/src/README index 8d37e42..33d1544 100644 --- a/src/README +++ b/src/README @@ -9,20 +9,27 @@ Slackpkg+ is a plugin for slackpkg To install it copy: -slackpkgplus.conf in /etc/slackpkg -slackpkgplus.sh in /usr/libexec/slackpkg/functions.d/ +slackpkg+.conf in /etc/slackpkg +slackpkg+.sh in /usr/libexec/slackpkg/functions.d/ +edit slackpkg+.conf +uncomment one or more mirrors and add it in PRIORITYPLUS order then launch slackpkg update -You may add repositories in slackpkgplus.conf - - If do you add some repository that does not support MANIFEST.bz2 you may obtain a warning in slackpkg update. Don't warry.. it's no a problem. This is a beta version. + +KNOWN BUGS: + +when used with multiple repositories and two repositories have the same package, slackpkg show only the first (in the order specified in PRIORITY & PRIORITYPLUS configuration). + +when one repository contains multiple packages with same name (some repository contains both 32 and 64 bit architectures and/or multiple slackware version, 14.0, 13.37, 13.1 ...), slackpkg show only one package, in a unknown order!! An example is the AlienBob repository. +slackpkg+ try to detect the best package for your installed slackware, but it may fails! + diff --git a/src/slackpkgplus.conf b/src/slackpkgplus.conf index d6c76f5..b50e8e4 100644 --- a/src/slackpkgplus.conf +++ b/src/slackpkgplus.conf @@ -1,7 +1,19 @@ -SLACKPKGPLUS=off +# Enable (on) / Disable (off) slackpkg+ +SLACKPKGPLUS=on -#MIRRORPLUS['alienbob']=http://connie.slackware.com/~alien/slackbuilds/ -MIRRORPLUS['zerouno']=http://www.z01.eu/repo-slack/slackware64-current/ -MIRRORPLUS['slacky']=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware64-13.37/ +# Define package search order PRIORITYPLUS=( zerouno slacky ) + +# Define mirrors + +MIRRORPLUS['alienbob']=http://connie.slackware.com/~alien/slackbuilds/ + +MIRRORPLUS['zerouno']=http://www.z01.eu/repo-slack/slackware64-current/ + +#MIRRORPLUS['slacky']=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-13.37/ +MIRRORPLUS['slacky']=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware64-14.0/ +#MIRRORPLUS['slacky']=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-13.37/ +#MIRRORPLUS['slacky']=http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware64-13.37/ + + diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index c0b75b6..57b7a70 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -10,6 +10,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then REPOPLUS=${!MIRRORPLUS[*]} PRIORITY=( ${PRIORITY[*]} slackpkgplus_$(echo $REPOPLUS|sed 's/ / slackpkgplus_/g') ) + X86_64=$(ls /var/log/packages/aaa_base*x86_64*|head -1 2>/dev/null) + function getfile(){ local URLFILE URLFILE=$1