List Info

Thread: Can I open the PPM4 GUI without synchronizing the repositories?




Can I open the PPM4 GUI without synchronizing the repositories?
user name
2006-12-07 08:01:40
Hi Gisle,

Thanks for the reply. I've implemented the changes, but it
is still verifying (and downloading every package) when I
tried to perform a ppm install DBD-ADO from the command
line. I'll only keep the change done in the GUI.pm for the
moment.
Unfortunately, for me the sync takes more than 90 minutes. I
didn't think we have a so bad LAN and Internet connectivity,
but maybe.
The outputs are below:

C:dev>ppm repo list --csv
id,pkgs,name
1,6422,ActiveState Package Repository
2,7,RothConsulting

C:dev>ppm repo describe 1
Id: 1
Name: ActiveState Package Repository
URL: http
://ppm4.activestate.com/MSWin32-x86/5.8/819/
Enabled: yes
Last-Status: 200 OK
Last-Access: 21 hours ago
Refresh-In: overdue

C:dev>ppm repo describe 2
Id: 2
Name: RothConsulting
URL: http://www.roth.net
/perl/packages
Enabled: yes
Last-Status: 200 OK
Last-Access: 20 hours ago
Refresh-In: overdue

C:dev>ppm search foo
Downloading ActiveState Package Repository packlist...done
Downloading ActiveState Package Repository ABI PPD...done
Downloading ActiveState Package Repository ACH-Builder
PPD...not modified
Downloading ActiveState Package Repository ACH-Generator
PPD...not modified
Downloading ActiveState Package Repository ACH-Parser
PPD...not modified
Downloading ActiveState Package Repository ACH PPD...not
modified
Downloading ActiveState Package Repository ACME-Error-31337
PPD...not modified
Downloading ActiveState Package Repository ACME-Error-HTML
PPD...not modified
Downloading ActiveState Package Repository
ACME-Error-IgpayAtinlay PPD...Termina
te batch job (Y/N)? y

C:dev>ppm log
Last minute of C:DOCUME~1TMinkokaLOCALS~1Tempppm4.log:

2006-12-07T09:00:35 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ ==> 200 OK (1294701 bytes in 83 sec - 15 KB/s)
2006-12-07T09:00:40 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ABI.ppd ==> 200 OK (539 bytes in 1.38 sec - 0
KB/s)
2006-12-07T09:00:41 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACH-Builder.ppd ==> 304 Not Modified (in 0.68
sec)
2006-12-07T09:00:41 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACH-Generator.ppd ==> 304 Not Modified (in 0.69
sec)
2006-12-07T09:00:42 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACH-Parser.ppd ==> 304 Not Modified (in 0.69 sec)
2006-12-07T09:00:43 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACH.ppd ==> 304 Not Modified (in 0.77 sec)
2006-12-07T09:00:44 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACME-Error-31337.ppd ==> 304 Not Modified (in
0.74 sec)
2006-12-07T09:00:44 <6> [Web.pm:63] GET http://ppm4.
activestate.com/MSWin32-x86/
5.8/819/ACME-Error-HTML.ppd ==> 304 Not Modified (in 0.72
sec)
2006-12-07T09:00:45 <4> [ppm:13] Terminating on signal
SIGINT(2)
2006-12-07T09:00:50 <6> [ppm:66] ppm log

C:dev>

Regards,

TSHIMANGA Minkoka
VAS Administrator
Mobile: +243 814443113
Office: +243 813131347
Fax:    +243 813010373
Email:  tshimanga.minkokavodacom.cd
VODACOM CONGO (DRC) s.p.r.l.


-----Original Message-----
From: Gisle Aas [mailto:gisleActiveState.com] 
Sent: Wednesday, 06 December 2006 13:51
To: Tshimanga Minkoka
Cc: ppmlistserv.ActiveState.com
Subject: Re: Can I open the PPM4 GUI without synchronizing
the repositories?

"Tshimanga Minkoka" <tshimanga.minkokavodacom.cd> writes:

> Is there a similar work around to avoid the repo resync
from ppm
> command lines (ppm install <package>, ppm search
<package> ...)?

I guess you could comment out the calls to
$ppm->repo_sync in
do_search and do_install functions the binppm.bat file, and
we could
let these commands take --no-sync options for our next
release.

But I really want to understand better why you have trouble
with these
syncs.  They should not hit the network very often, and when
they do
it should be a cheap request to validate that the current
repo state
is still valid.

Can you provide me with the output of running these
commands:

  ppm repo list --csv
  ppm repo describe 1
  ppm repo describe 2

  ppm search foo
  ppm log

Regards,
Gisle


_______________________________________________
PPM mailing list
PPMlistserv.ActiveState.com

http://listserv.ActiveState.com/mailman/listinfo/ppm
Can I open the PPM4 GUI without synchronizing the repositories?
user name
2006-12-07 09:19:02
"Tshimanga Minkoka" <tshimanga.minkokavodacom.cd> writes:

> Thanks for the reply. I've implemented the changes, but
it is still verifying (and downloading every package) when I
tried to perform a ppm install DBD-ADO from the command
line. I'll only keep the change done in the GUI.pm for the
moment.
> Unfortunately, for me the sync takes more than 90
minutes. I didn't think we have a so bad LAN and Internet
connectivity, but maybe.
> The outputs are below:
> 
> C:dev>ppm repo list --csv
> id,pkgs,name
> 1,6422,ActiveState Package Repository
> 2,7,RothConsulting
> 
> C:dev>ppm repo describe 1
> Id: 1
> Name: ActiveState Package Repository
> URL: http
://ppm4.activestate.com/MSWin32-x86/5.8/819/

This URL ought to end with 'package.xml'.  Not sure exactly
under
which conditions you end up with a setting like this, but
I'll make
sure the next PPM version always goes for the 'package.xml'
file right
away.  Currently PPM only looks for the 'package.xml' file
at the time
the repo is added.  If not found then falls back to look for
HTML
links to PPD files which is what the above URL provide.

You can fix this up by running:

  ppm repo location 1 http://ppm4.activestate.com/MSWin32-x86/5.8/819/packa
ge.xml

This should make a huge difference.  Sorry about all the
trouble.

Regards,
Gisle
_______________________________________________
PPM mailing list
PPMlistserv.ActiveState.com

http://listserv.ActiveState.com/mailman/listinfo/ppm
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )