Re: [TOOL] slackpkg+ released
Inviato: lun 28 ott 2013, 12:53
rc3
Codice: Seleziona tutto
--- zdialogplus.sh 2013-11-06 10:34:21.831730648 +0100
+++ zdialogplus.sh 2013-11-06 11:51:05.902978757 +0100
@@ -26,9 +26,21 @@
for i in $1; do
BASENAME=$(cutpkg $i)
PKGFOUND=$(grep -m1 -e "^${BASENAME}-[^-]\+-\(noarch\|fw\|${ARCH}\)" $TMPDIR/tmplist)
+ PKGCURRVER=$(echo $i|rev|cut -f3- -d-|rev|sed 's/-/ /g')
+ PKGFOUNDVER=$(echo $PKGFOUND|rev|cut -f3- -d-|rev|sed 's/-/ /g')
+ ONOFFTMP=off
+ if [ $(echo -e "$PKGCURRVER\n$PKGFOUNDVER"|sort -n|md5sum|awk '{print $1}') == $(echo -e "$PKGCURRVER\n$PKGFOUNDVER"|md5sum|awk '{print $1}') ];then
+ NEWER="OLD"
+ else
+ NEWER="NEW"
+ if [ "$ONOFF" == "on" ];then
+ ONOFFTMP=on
+ fi
+ fi
+
REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//')
- echo "$i \"$REPOPOS\" $ONOFF \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
+ echo "$i \"($NEWER) $REPOPOS\" $ONOFFTMP \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
done
HINT="--item-help"
else
@@ -52,7 +64,7 @@
awk '{ NF=3 ; print $0 }' $TMPDIR/dialog2.tmp > $TMPDIR/dialog.tmp
HINT=""
fi
- cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 70 13 2>$TMPDIR/dialog.out
+ cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 75 17 2>$TMPDIR/dialog.out
case "$?" in
0|123)
dialog --clearCodice: Seleziona tutto
┌────────────────────────────────upgrade──────────────────────────────────â”
│ Choose packages to upgrade: │
│ ┌─────────────────────────────────────────────────────────────────────┠│
│ │ [ ] chromium-30.0.1599.66-x86_64-1sl.txz (OLD) slacky │ │
│ │ [*] libreoffice-4.1.3-x86_64-1alien.txz (NEW) alienbob │ │
│ │ [*] libreoffice-l10n-it-4.1.3-x86_64-1alien.txz (NEW) alienbob │ │
│ │ [*] libreoffice-mozplugin-4.1.3-x86_64-1alien.txz (NEW) alienbob │ │
│ │ [ ] libvdpau-0.5-x86_64-1sl.txz (OLD) slacky │ │
│ │ [ ] tightvnc-1.3.10-x86_64-1gv.txz (OLD) salixos │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
├─│ │─┤
│ └───────────────────< OK >───────────<Cancel>───────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
Magari puoi vedere se riesci ad inserirla ugualmente ma come parametro opzionale da scegliere nello slackpkgplus.conf. Se a qualcuno serve la attiva altrimenti amenZeroUno ha scritto:Su linuxquestions me l'hanno bocciata! però poteva essere utile su un alto numero di pacchetti, almeno in visualizzazione e solamente sui pacchetti di terze parti.
ChiaroZeroUno ha scritto:Che dite, visto che mi ha scritto in russo gli rispondo in italiano?
Ecco, ora è meno embrionale; rimane unstable, ma almeno è una bozza funzionante.ZeroUno ha scritto:[edit] la nuova funzionlità a parte mi sono sbagliato, non l'ho caricata proprio perchè era embrionale, ed è rimasta solo sul mio pc.[/edit]
Codice: Seleziona tutto
# source zchangelog.sh
# makepkglog
Codice: Seleziona tutto
Sun Jan 10 14:50:56 CET 2016
----------------------------------
Added: alienbob_141
Added: alienbob_current
Added: extra
Added: ktown
Added: mleddesktop_141
Added: mleddesktop_142
Added: mledextras_141
Added: mledextras_142
Added: mles_141
Added: mles_142
Added: msb
Added: restricted_141
Added: restricted_current
Added: rlworkman_141
Added: rlworkman_current
Added: salixos_141
Added: slacke18_141
Added: slackel_current
Added: slackers_current
Added: slackonly_141
Added: slackonly_current
Added: slackpkgplus
Added: slackware
Added: slacky_141
Added: studioware_141
Added: testing
==================================
Codice: Seleziona tutto
Sun Jan 10 15:47:02 CET 2016
----------------------------------
Added: msbb
Upgraded: slackpkgplus :: slackpkg+-1.7.a3-noarch-1mt.txz
==================================Codice: Seleziona tutto
# cat $TMPDIR/RepoChangeLog.txtCodice: Seleziona tutto
= Full Change list =
== From 1.6 and 1.7 ==
*Configuration file:
- Added SEARCH_CLOG_INPARENT: available 'on'/'off'; default 'off'
Allow/disallow to search ChangeLog.txt in parent url. May be unsafe.
- Added WW_FILE_SEARCH: available 'on'/'off'; default 'off'
Allow you to enable or disable the Whole Word search in 'slackpkg file-search'
- Added DETAILED_INFO: available 'none'/'basic'/'filelist'; default 'none'
Specify the verbosity of output in 'slackpkg info'.
- Added STRICTGPG: available 'on'/'off'; default 'on'
Allow you to disable the Strict GPG Check. This is NOT SECURE, but some
repository may need it.
*New features:
- slackpkg+ allow you to see the ChangeLog in dialog box.
Now 'slackpkg update' download all ChangeLog.txt from all repositories (if
available). Then when you go to in install/upgrade a package have a chance
to read it before install the package. Note that the ChangeLog must be in
the same Slackware changelog format. Some repository does not have the
ChangeLog.txt in the main url but has it in a parent url. Be sure to set
SEARCH_CLOG_INPARENT to 'on' to search it in parent. Note that ascend out
of main url sometime may be unsafe; so if it does not work reset it to 'off'.
- slackpkg info allow you to see more details about the package.
By default slackpkg info shows you the slackware metadata and package
description. Set DETAILED_INFO to 'basic' and you can also see the
repository and url. Set it to 'filelist' and you will see the full file
listing in the package. Note that packages as kernel-source or other big
packages give you a loooong list.
- slackpkg+ uses a Strict GPG Check for packages and metadata .asc files.
This is a security fix.
slackpkg was bird to install slackware packages from official mirrors; they
are signed with the official slackware GPG-KEY, so no other packages may be
added (unless you disable GPG check).
slackpkg+ introduces the ability to download keys from many repositories; as
implication, slackpkg+ allow also to copy packages from other repositories and
the original signature; in this way a repository can contain a mix of packages
that may confuse the user.
Strict GPG check disallow users to do that. This improve the security.
However some repository NEEDs the mixes of packages, so you can disable this
function by setting STRICTGPG to 'off'
*Improvements
- Cached Download:
Now it gives you a quick output for a most clear output.
Now you can use it in slackpkg check-updates.
- Performance:
slackpkg now is faster when search packages or prepare the package list in
large install/upgrade
- slackpkg search:
* If a package match in more than one repository, id did show just the package
that had priority; now it show all matching packages from all repositories.
It will mark as 'masked' the packages that would not selected in install/upgrade
mode. Also always show repository source for official packages.
* It does order the results by status and colors the output
* It does search in dir:// repositories
- Graylist:
Now it works for slackpkg remove and clean-system too (however it matches
package name only, not match for repository name or package path)
- slackpkg check-updates:
* Added spinning
* Shows downloader output if VERBOSE=3
* Does not more show notices about remember to run 'slackpkg update'
- slackpkg reinstall:
Allow to choose the repository as in install/upgrade; this becouse there are
more than one repository containing packages with identical name.
- dir:// repositories:
* dir:// repositories and inline repositories has most priority
* slackpkg search does search in dir:// repositories
* now dir:// allow subdirectories
*BugFixes
- slackpkg did give 'grep: write error' when running after "sudo su -"
- Fixed a bug on x86 hosts when a repository contains also x86_64 packages.
- Fixed a bug in slackpkg upgrade when used with $ROOT.
- Fixed Download Only feature when upgrade base packages (aaa_base, pkgtools...).
- Fixed a regression in SENSITIVE_SEARCH
- Fixed bad trap CTRL+C when spinning is on.
- Various fixes in TAG_PRIORITY functionality.
- slackpkg could corrupt the slackware database if running when there are
some manual upgrades in progress.
- slackpkg search did not honour correctly the '+' character
*Various
- Repository name can contains letters, numbers, minus and underscore
- Added and fixed repositories; improved checkrepos.sh
- Code reordering; now slackpkg+ is only slackpkgplus.sh; removed zdialogplus.sh