Recent

Author Topic: How to (correctly) update with OPM?  (Read 4202 times)

polpero

  • Full Member
  • ***
  • Posts: 121
How to (correctly) update with OPM?
« on: July 20, 2021, 10:56:56 pm »
I thought I understood the way to update with the Online Package Manager
But now I am in doubt...

Let's say some changes have been made to ATSynEdit
What would be the correct way, using the OPM, to proceed?

I am now copying the files manually downloaded from ATSynEdit's GitHub
and placing them in the package repository used by OPM
but that's not the correct way to do it right?

I won't mention the other attempts made prior to this one...
:)

 

balazsszekely

  • Guest
Re: How to (correctly) update with OPM?
« Reply #1 on: July 21, 2021, 07:58:11 am »
Hi polpero,

Please read this: https://wiki.freepascal.org/Online_Package_Manager

PS: I updated ATSynEdit, ATSynEdit_Ex, ATSynEdit_Cmp, EControl, ATflatcontols

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: How to (correctly) update with OPM?
« Reply #2 on: July 21, 2021, 08:17:11 am »
I am now copying the files manually downloaded from ATSynEdit's GitHub
and placing them in the package repository used by OPM
You should get a component's sources from its development repository, in this case clone from Github, and install directly without OPM.
OPM provides release versions but you follow the development of some components more closely and want to test every change.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

jcmontherock

  • Full Member
  • ***
  • Posts: 236
Re: How to (correctly) update with OPM?
« Reply #3 on: July 21, 2021, 10:49:40 am »
I read the wiki page given by GetMem and I have one question:
What the meaning of the blue icon at the left of package name ? There is no hint.

Windows 11 UTF8-64 - Lazarus 3.2-64 - FPC 3.2.2

balazsszekely

  • Guest
Re: How to (correctly) update with OPM?
« Reply #4 on: July 21, 2021, 10:59:06 am »
I read the wiki page given by GetMem and I have one question:
What the meaning of the blue icon at the left of package name ? There is no hint.
Shows newly added/updated package(s) for 31 days. The number of days can be configured in options(see attached image).

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: How to (correctly) update with OPM?
« Reply #5 on: July 21, 2021, 11:04:42 am »
You cannot "update" a component installed by OPM, you only can re-install it. So when OPM shows you by means of the blue arrow that there is a new version and you want to update your current installation, check and install the package as if it were your first installation of it. At the end you will have the new version in the IDE.

However, you will only get the OPM version this way. As Juha noted this is always the most recent stable version released by the author. In order to get the most recent development version install the package from its repository, usually svn or git, and this will overwrite a previously installed OPM version. Installation from the repository is a bit more complicated than the one-click process of OPM: download the package via svn or git, or download the zipped sources, then open the .lpk file found in the package. When it is a designtime-package you must also click "Use">"Install" and rebuild the IDE. Sometimes there are several packages within the same download; here you must handle the packages in the correct order - have a look at the README file which often accompanies the download.

jcmontherock

  • Full Member
  • ***
  • Posts: 236
Re: How to (correctly) update with OPM?
« Reply #6 on: July 21, 2021, 11:14:07 am »
Thanks for your explanations   :D
Windows 11 UTF8-64 - Lazarus 3.2-64 - FPC 3.2.2

polpero

  • Full Member
  • ***
  • Posts: 121
Re: How to (correctly) update with OPM?
« Reply #7 on: July 21, 2021, 12:29:22 pm »
@wp

Your last paragraph is the confirmation I was looking for,
and what a method of trial and error finally brought me to.

This last paragraph of yours should be added to the wiki page.

//

This also means that such an update 'messes' with the OPM's work
as a re-installation by the OPM of such a component
would  remove the update and require also a re-updating...

Thanks for the information.


wp

  • Hero Member
  • *****
  • Posts: 11923
Re: How to (correctly) update with OPM?
« Reply #8 on: July 21, 2021, 06:29:18 pm »
This also means that such an update 'messes' with the OPM's work
as a re-installation by the OPM of such a component
would  remove the update and require also a re-updating...
It does not matter how you install a package, it always replaces the previously installed version and makes the new version available (the old source files, however, are left unchanged if they are in a different folder). This is no "mess". Luckily the IDE is able to always (*) find the most recently installed version.

----
(*) Disclamer: Never make absolute statements such as "always", "never" etc  ;)

 

TinyPortal © 2005-2018