2 Attachment(s)
Hello,
Quote:
Quote:
_____________________ I did some change to the changelog viewer so that it can display changelog entries from 3rd party repositories, too. To achieve this, I modified getfile() so that, it downloads ChangeLog from 3rd party repositories, merges them with slackware changelog into a file called Unified-ChangeLog.txt, and, generates an index file called Unified-ChangeLog.idx. Notes:
Here is a screenshot of changelog viewer with changelog entries from 3rd party repositories : As I said earlier, when the repository don't follow the "standard" changelog format, some information can be truncated, which is the case for the entry compat32-tools in the screenshot above. The patch (Attachment 21154) is for slackpkg+/devel 1.7.b4 : Code:
--- slackpkgplus.sh.git.1.7.b4 2016-03-15 10:51:40.250215213 +0100 -- Seb |
I'm sorry for the time, but I'm a lot occupied this period.
Yes, I like the Changelog for 3th party repository, even if just few repositories has useful information (well, when I wrote slackpkg+ there was few repositories with CHECKSUMS.md5 and very few with the GPG-KEY; today all have it) and not all Changelog files have a slackware-compatible format. I dislike to search Changelog in parent directories becouse that means to go out the path specified from the user. I know the a lot o repositories have Changelog just in parent. So I think that we should add a setting in slackpkgplus.conf where the user explicitly allow to serch changelog in parent. The 404 problem reported from wget I think that should be managed but it is to review later becouse we have a lot of downloader 1) wget 2) wgetdebug 3) cacheddownloader (that also use curl to retrieve the headers) 4) custom $DOWNLOADCMD we have the same problem with some not existent MANIFEST.bz2 and other metadata that not all repositories have. Also I want to reintroduce the function that we removed a lot of time ago, regarding the install-new working for multilib. Everytime I run the install-new command I have to remember to run slackpkg install multilib; and if I have no a full slackware installation I have to remember which 32bit libraries I have to install. The idea is the same of years ago.. find for 32bit packages that have the corrispondent 64bit installed as setupmultilib.sh does. |
Hello,
Quote:
Quote:
Quote:
Quote:
-- SeB |
Sorry for absence..
On my office I've currently double work to do and a lot to do on my house. However if there are not other think to report, these days I will release beta5 with the only 3th party changelogs, and if it works well I think that we can release an rc release to freeze any other new feature and only fix current. If someone has something to say, speak now or forever hold your peace :D I have other ideas but I finished the time to elaborate it; I will add it in a further version. I whould some feedback from who think to put slackpkg in her own repository and from who asked for a stable release. My idea is to release slackpkg 1.7 stable before slackware 14.2 (that is currently -rc1) so to test it sufficiently to call it stable when slackware 14.2 will be release. |
I'm seeing the code for changelog and I found something to fix.
(aligned to latest patch excluding SEARCH_CLOG_INPARENT implementation) * row 1284 and 1343 Code:
if $CLogOpt ; then Code:
sed -i -e "/^$PKGS_REGEX/ s= off = on =" $TMPDIR/dialog.tmp dialog.tmp does not ends with blank space so dialog.tmp.off is always == dialog.tmp * row 1334 Code:
if [ -s $TMPDIR/dialog.out ] ; then I think that should appear a dialog with a similar of "Please, select at least a package" * row 1187 Code:
echo -e "\t$Cline" >> $TMPDIR/Packages.clog Currently I've not tried all, but it is a great work. Thankyou |
Quote:
Quote:
Code:
$ slackpkg upgrade kde-runtime kde-wallpapers kdelibs Quote:
Code:
if [ -s $TMPDIR/dialog.out ] ; then Quote:
-- SeB |
Quote:
There may have a different format. I have not a pc now to test. |
Quote:
So to fix the 1st problem, replace : Code:
cat $TMPDIR/dialog.tmp | sed "s/ on / off /g" > $TMPDIR/dialog.tmp.off Code:
# in case of install, dialog.tmp is to the format (1), otherwise the format (2) Code:
sed -i -e "/^$PKGS_REGEX/ s= off = on =" $TMPDIR/dialog.tmp Code:
# in case of install, dialog.tmp is to the format (1), otherwise the format (2) -- SeB |
slackpkg+-1.7.b4.1 released
I also removed some unuseful verbosity in cached_downloader for clarity and compact output. If you want some output set VERBOSE=2 or does not use the caching downoader |
May be useful to write - in the Unified-ChangeLog.idx - then repository name:
19127:slackpkgplus: pkg/slackpkg+-1.7.b4.2-noarch-2mt.txz: Rebuilt |
Only preparing the next slackpkg+ changelog I saw what we done in this release.
I needed a separated file to track all changes!! A very thanks to all contributing with code, bug reporting, idea or comments!!!! Now begins the bugfixing only. Code:
== From 1.6 and 1.7 == |
2 Attachment(s)
Hello,
Quote:
I looked at this, but this would be too tricky to do with the current code because of the way files Unified-ChangeLog.txt and Unified-ChangeLog.idx are generated. So to achieve this, I modified the code, so that, for each repository, there is a couple of files {<reponame>.txt, <reponame>.idx} stored in directory WORKDIR/ChangeLogs, and I updated the functions getfile() and showChangeLogInfo() accordingly. the patch Attachment 21586 is for slackpkg+/dev 1.7.b4.2 : Code:
--- slackpkgplus.sh.git.1.7.b4.2 2016-04-21 15:58:55.723360071 +0200 Cheers. -- SeB |
The ideas was to put repository name in Unified-ChangeLog.idx so to see it when opening manually that file, but it's a good idea to show it in dialog and put metadata in a dedicaded subdir.
I not jet merging that code, however I found a bug in the old code. Code:
# In effect at this point the $WORKDIR contains the older changelog, so if you run slackpkg update after a slackware update you does not have the new slackware changes in Unified-ChangeLog. The ChangeLog.txt is downloaded in $TMPDIR Code:
2016-04-28 09:43:20 URL:http://ftp.osuosl.org/.2/slackware/slackware64-current/ChangeLog.txt [298373/298373] -> "/tmp/slackpkg.9fNs11/ChangeLog.txt" [1] If you abort with ctrl+c the slackpkg update during changelog download, the older Unified-ChangeLog will be removed and the new is partial. |
Quote:
Quote:
Quote:
Quote:
1. Duplicate the code which handle the command "update" from original slackpkg, and add the required code to copy the ChangeLog from TMPDIR into WORKDIR : Code:
update) Code:
function cleanup() { Another point which has nothing to do with the last changes. This morning, when reading this thread, I've tried to run the command slackpkg search mozilla-firefox, but it returned nothing : Code:
$ slackpkg search mozilla-firefox Code:
$ ls /var/log/packages/mozilla-firefox-38.6.1esr-x86_64-1_slack14.1 Code:
grep ${GREPOPTS} "^$DIR" $WORKDIR/pkglist|grep ${GREPOPTS} "/SLACKPKGPLUS_$SEARCHSTR/\|/$SEARCHSTR/\|/$SEARCHSTR \| [^ /]*$SEARCHSTR[^ /]* " > $PKGINFOS Anyway, without these slash at line #920 : Code:
grep ${GREPOPTS} "^$DIR" ${WORKDIR}/pkglist ${TMPDIR}/pkglist-pre|grep -E ${GREPOPTS} "SLACKPKGPLUS_$SEARCHSTR|$SEARCHSTR|$SEARCHSTR | [^ ]*$SEARCHSTR[^ ]* " > $PKGINFOS Code:
slackpkg search mozilla-firefox -- SeB |
Now I've few time, so I reply quickly.
Quote:
Quote:
Code:
if [ "$CMD" == "update" ];then [quote] Code:
$ slackpkg search mozilla-firefox Quote:
|
All times are GMT -5. The time now is 01:16 PM. |