Recent

Author Topic: Online Package Manager  (Read 515824 times)

wp

  • Hero Member
  • *****
  • Posts: 7620
Re: Online Package Manager
« Reply #1725 on: January 21, 2020, 03:39:59 pm »
GetMem, could you update the Industrial package? I just uploaded a new version to SourceForge (https://sourceforge.net/projects/lazarus-ccr/files/industrialstuff/industrialstuff-0.4.0.zip/download) which takes care of LCL scaling of the individual components and provides high-resolution icons for the component palette.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1726 on: January 21, 2020, 06:14:47 pm »
GetMem, could you update the Industrial package? I just uploaded a new version to SourceForge (https://sourceforge.net/projects/lazarus-ccr/files/industrialstuff/industrialstuff-0.4.0.zip/download) which takes care of LCL scaling of the individual components and provides high-resolution icons for the component palette.

Done. Thanks for the new version.

anderbelluno

  • Jr. Member
  • **
  • Posts: 50
Re: Online Package Manager
« Reply #1727 on: January 21, 2020, 06:57:39 pm »
Hi Getman, i'm REST Dataware team, we have a new version on Source Forge repository,  you can update OPM please?

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1728 on: January 21, 2020, 08:03:30 pm »
Hi Getman, i'm REST Dataware team, we have a new version on Source Forge repository,  you can update OPM please?

I just did it. Thanks for the new version.

dbannon

  • Hero Member
  • *****
  • Posts: 1165
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Online Package Manager
« Reply #1729 on: February 12, 2020, 12:39:19 pm »
What is the process for seeing packages in the OPM updated ?

My particular interest is in KControls and RichMemo, Both have had a number of recent updates but when I look at the OPM from within lazarus they are described as being up to date.

The OPM is such a great tool, I would hate have to use another model.

KControls in particular has moved to github and has had a couple of patches I sent in applied, I would like to be able to grab the "official" version to prove that work as expected.

Similarly, I would like to close some bug reports for RichMemo ....

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1730 on: February 12, 2020, 01:54:41 pm »
@dbannon

Usually OPM only supports the latest stable version of a particular package. There are a few exceptions from the rule. For example when the release cycle is slow, I do update the packages manually from time to time(ex: synapse, indy, etc...).
A package maintainer can "push" a newer, stable version of a package. If available, OPM can update from the maintainer's webpage(see screensot). In order for the update to work, the package developer must provide an json file. Approximatively 25% of the packages are using this feature.
Trunk version of a package is not supported in OPM, and for a good reason, the bugtracker would be flooded with invalid bugreports. Since third party packages are not related to Lazarus, the bugreports are annoying for the developers. Unfortunately it happened in the past.

PS: Since both KControls and RichMemo are stable packages, I can make an exception and update the central repository manually. When you're done with the bugfix please let me know. Also I need a link to the trunk versions:
https://github.com/kryslt/KControls/  (?)
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/ (?)


« Last Edit: February 12, 2020, 01:58:44 pm by GetMem »

Thaddy

  • Hero Member
  • *****
  • Posts: 10516
Re: Online Package Manager
« Reply #1731 on: February 12, 2020, 02:19:44 pm »
Usually OPM only supports the latest stable version of a particular package.
It allows you to build any combination. That is a feature. But  is not documented that you have to know how mix and match....
 This may be not correct for packages....
« Last Edit: February 12, 2020, 02:22:56 pm by Thaddy »

minesadorada

  • Hero Member
  • *****
  • Posts: 605
  • Retired
Re: Online Package Manager
« Reply #1732 on: February 12, 2020, 02:33:00 pm »
@getmem - have you any plans to implement the "star ratings" feature?
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1733 on: February 12, 2020, 08:37:50 pm »
@minesadorada
Unfortunately I don't have time. All I can do for now is update packages + small bug fixes.

dbannon

  • Hero Member
  • *****
  • Posts: 1165
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Online Package Manager
« Reply #1734 on: February 13, 2020, 03:28:50 am »
Usually OPM only supports the latest stable version of a particular package.....
Very sensible !

PS: Since both KControls and RichMemo are stable packages, I can make an exception and update the central repository manually. When you're done with the bugfix please let me know. Also I need a link to the trunk versions:
https://github.com/kryslt/KControls/  (?)
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/ (?)

Thanks getmem (and thanks for maintaining OPM !).

KControls - no longer has a 'trunk' and 'release' version, for some time now, TK has been willing to apply patches such as mine but not engaging in any release process. So, yes, the place to go is https://github.com/kryslt/KControls and it does appear TK is not maintaining the JSON file there.

Now, https://github.com/kryslt/KControls/archive/master.zip (accessible from the Github "Clone or Download" button) is the correct download, the json file mentions https://github.com/kryslt/KControls/archive/1.7.3.zip which is quite out of date.

I will log a bug report with him, suggesting he manually update the 1.7.3.zip or change the json file to point to master.zip which is auto updated on each commit. Risky I know but given TK's reluctance to be more involved, our only option.

Richmemo
I confess some processes (SVN and CCR) here are a mystery to me.  https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/ does appear to be 'trunk' and it appears to be automatically copied, daily (?) to https://havefunsoft.com/share/richmemo.zip - I guess you could consider that the release version (but auto copied ....?).

I have just manually tested both and both do incorporate the patches I have submitted. Both are quite sizeable so my tests would not possibly constitute a thorough test of either package.

Your call.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1735 on: February 13, 2020, 07:20:13 am »
@dbannon
Quote
I have just manually tested both and both do incorporate the patches I have submitted. Both are quite sizeable so my tests would not possibly constitute a thorough test of either package.
Thanks. I updated both KControls and RichMemo in OPM.

dbannon

  • Hero Member
  • *****
  • Posts: 1165
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Online Package Manager
« Reply #1736 on: February 13, 2020, 09:09:03 am »
Hmm, KControls shows up as "up to date" in my Lazarus OPM, even though the one installed is somewhat older, several commits, than the one the OPM is displaying. I guess because its still version 1.7.3.0 ?

I assume I can force a download and install of the new one, you have date stamped it so its easy to see it is the right one. 

Sad that we cannot make it clearer that you have a newer version in the OPM.  Does not worry me personally, I'm just one of those people who always want better 'processes'  :-)

Thanks Getmem, having to install manually (to do my tests) reminded me of just how good the Online Package Manager really is !

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1737 on: February 13, 2020, 01:49:39 pm »
@dbannon

Quote
Hmm, KControls shows up as "up to date" in my Lazarus OPM, even though the one installed is somewhat older, several commits, than the one the OPM is displaying. I guess because its still version 1.7.3.0 ?
Yes. OPM reads the version number from the central repository. If the version is the same as the locally installed  package version,  the "up to date" message is displayed. OPM does not care about revision numbers.

Quote
I assume I can force a download and install of the new one, you have date stamped it so its easy to see it is the right one. 
Yes.

Quote
Sad that we cannot make it clearer that you have a newer version in the OPM.
Actually we can. Please go to OPM->Options-->General, then uncheck the "Show regular icon for newly added packages after install" checkbox. After a reload you will see a blue lightning icon, which means: the package was modified in the last 31 days(31 is also customizable in the same place). You can also see the exact date of the last update(see screenshot).
If you ask why this option is not unchecked by default, the answer is it was in the past, but the blue lightning icon annoyed a few people, especially when appeared for installed packages.  So I had to make it optional and hide the lightning icon and date by default. :D
« Last Edit: February 13, 2020, 01:53:17 pm by GetMem »

minesadorada

  • Hero Member
  • *****
  • Posts: 605
  • Retired
Re: Online Package Manager
« Reply #1738 on: February 13, 2020, 02:12:46 pm »
@Getmem - can you add Splashabout?
https://svn.code.sf.net/p/lazarus-ccr/svn/components/splashabout/splashabout.json
https://svn.code.sf.net/p/lazarus-ccr/svn/components//splashabout/updates/update_splashabout.json
Making a json from a component via OPM is currently flawed, but I did the best I could.
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

avra

  • Hero Member
  • *****
  • Posts: 2010
    • Additional info
Re: Online Package Manager
« Reply #1739 on: February 13, 2020, 02:46:54 pm »
@GetMem:

Looking at screenshot from your last message (https://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=34297.0;attach=35380), I find a little confusing naming a column "Repository". Would that be OPM's repository or author's repository? You gave an explanation in screenshot and also after some thinking someone might come to the correct conclusion by himself, but I do not find it clear enough. Instead of "Repository" and "External" column names I would suggest "OPM" and "External", or "OPM Repository" and "External Repository" if you like long names.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018