Recent

Author Topic: Online Package Manager  (Read 840469 times)

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: Online Package Manager
« Reply #180 on: November 05, 2016, 07:56:15 am »
I see you called the synapse trunk synapse41. I thought it was version 40.1.0.0. Calling it synapse41 might be confusing as it is not synapse 41.0.

eric

  • Sr. Member
  • ****
  • Posts: 267
Re: Online Package Manager
« Reply #181 on: November 05, 2016, 01:39:20 pm »
In the confirmation dialog shown in this post: http://forum.lazarus.freepascal.org/index.php/topic,34297.msg227870.html#msg227870
there are some typos. It should read
Quote
Package: "lazupdate.lpk" depends on package: "laz_synapse.lpk". Resolve dependency?

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #182 on: November 05, 2016, 07:46:07 pm »
@minesadorada
Done! Each package default hompage is linked to your wiki page. Thanks.

@rvk
Fixed. "synapse 41.0" is now "synapse40.1".  Thanks.

@eric
Thanks. I fixed the typos.

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: Online Package Manager
« Reply #183 on: November 07, 2016, 08:16:51 pm »
Hi Getmem,
Can you hold fire on LazAutoUpdate for a bit?  SourceForge changed their downloading protocol, (grr) and the current version of lazautoupdate doesn't cope with it yet.
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #184 on: November 07, 2016, 11:33:47 pm »
Quote
@minesadorada
Can you hold fire on LazAutoUpdate for a bit?
The repository is already updated. I can hide LazAutoUpdate if you like.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #185 on: November 07, 2016, 11:37:18 pm »
The repository is up and running again(40 packages). Before testing, please download and install lazopkman from the following link: https://github.com/getmem/LazOpkMan
What's new:
  - compile packages before install(available in Lazarus trunk r53263+), in version 1.6 the compile process is skipped
  - no more annoying explorer windows
  - force download, force extract implemented
  - remember last download directory, remember package source and package destination directory
  - a lot of bugix
  - update packages from external link(test with bgrabitmap9.2.1 - it has a valid link). I will fix the others soon. In my opinion this was a bad idea, since very few maintainers provide snapshots of development versions.

To do:
 - update packages from SVN
 - documentation
 - voting system

Please test. Thank you!
« Last Edit: November 08, 2016, 08:29:34 am by GetMem »

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Online Package Manager
« Reply #186 on: November 08, 2016, 01:21:59 am »
Download New version from above link
Went to install package and get error
opkman_installer.pas(166,40) Error: identifier idents no member "DoCompilePackage"

in line
function TPackageInstaller.CompilePackage(const AIDEPackage: TIDEPackage;
  APackageFile: TPackageFile): Integer;
begin
  Result := -1;
  {$if declared(lcl_version)}
   {$if (lcl_major >= 1) and (lcl_minor >= 7)}
     //DoCompilePackage function is only available with Laz 1.7 +
     DoOnPackageInstallProgress(imCompilePackage, APackageFile);
     Result := PackageEditingInterface.DoCompilePackage(AIDEPackage, [pcfCleanCompile, pcfDoNotSaveEditorFiles], False);  <--------- HERE
   {$endif}
  {$endif}
end;             


I am using Laz 1.7 SVN 51308, FPC 3.1.1.
Previous version .9  Worked ok (only 8 packages thoug)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

halim

  • New Member
  • *
  • Posts: 11
Re: Online Package Manager
« Reply #187 on: November 08, 2016, 01:35:37 am »
i get same error
i am using Newpascal ver 1.034 Laz Ver.1.7 and FPC 3.1.1

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #188 on: November 08, 2016, 06:28:15 am »
@Josh, @halim
I edited my post. DoCompilePackage function is only available in Lazarus trunk r53263+. I cannot distinguish with ifdef between different SVN versions, only major/minor/release versions. So you need Lazarus trunk r53263 or change the following line from:
Quote
{$if (lcl_major >= 1) and (lcl_minor >= 7)}
to
Quote
{$if (lcl_major >= 1) and (lcl_minor >= 8)}
The package manager will work fine(no compiling feature though). Of course none of this will be a problem after the next release.
« Last Edit: November 08, 2016, 08:29:48 am by GetMem »

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: Online Package Manager
« Reply #189 on: November 08, 2016, 08:35:13 am »
Excellent job @getmem!  Works like a charm.
Laz 1.7/fpc 3.1.1 Windows v10 x86_64
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: Online Package Manager
« Reply #190 on: November 08, 2016, 07:56:24 pm »
Quote
@minesadorada
Can you hold fire on LazAutoUpdate for a bit?
The repository is already updated. I can hide LazAutoUpdate if you like.
Ok LazAutoUpdate is working now (thanks Sourceforge for changing your API!)
There is another issue.

LazAutoUpdate is an updating system.  The component takes care of most of the updating, but there is a console app that is a companion, and a GUI for developers to manage the update/versioning process.  The question is: How much should OPM do?
Ideally it would download the component; the companion non-GUI (source) and the GUI developer maintainer (source).  Is this possible?  With all 3 elements, making an updateable Lazarus app hosted on SourceForge is pretty easy (which was the reason I wrote it) so I think it has value to developers.

I really don't know the answer, and would ask your advice.
« Last Edit: November 08, 2016, 07:58:53 pm by minesadorada »
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #191 on: November 08, 2016, 11:12:18 pm »
Quote
@minesadorada
The question is: How much should OPM do? Ideally it would download the component; the companion non-GUI (source) and the GUI developer maintainer (source).
Ideally only download the component, but I guess source is always ok. The user should decide the appropriate action.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #192 on: November 09, 2016, 07:51:31 am »
@minesadorada
Your package is visible again. Please test it. You should download the source first: https://github.com/getmem/LazOpkMan

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: Online Package Manager
« Reply #193 on: November 09, 2016, 09:18:56 am »
@minesadorada
Your package is visible again. Please test it. You should download the source first: https://github.com/getmem/LazOpkMan
At svn the version is 0.1.28.0  O.P.M. has 0.1.27.0 as the downloadable.  Can you update please?
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #194 on: November 09, 2016, 09:29:56 am »
Quote
At svn the version is 0.1.28.0  O.P.M. has 0.1.27.0 as the downloadable.  Can you update please?
Consider it done. However I don't know exactly when the next update will be. As I told you previously I'm not hosting the repository.

 

TinyPortal © 2005-2018