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-06 11:09:43
Hi Gisle,

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

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: Tshimanga Minkoka 
Sent: Wednesday, 06 December 2006 00:06
To: 'Gisle Aas'
Cc: ppmlistserv.ActiveState.com
Subject: RE: Can I open the PPM4 GUI without synchronizing
the repositories?

Hi Gisle,

Thanks, the work around works fine for me.

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: Monday, 04 December 2006 16:13
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:

> But still, even the verification that says '... not
modified', makes
> the whole operation to take more than 90 minutes with
my connection
> (in the office LAN).  I think it will help if we can
temporarily
> disable the sync, maybe in future version.

I understand.  I'll look into adding some option to disable
the
initial sync for our next release.  As a workaround until
then it
might help for you to apply this patch:

--- lib/ActivePerl/PPM/GUI.pm.orig      2006-12-04
16:06:02.000000000 +0100
+++ lib/ActivePerl/PPM/GUI.pm   2006-12-04
16:06:27.000000000 +0100
 -573,7
+573,7 
     $mw->configure(-cursor => "watch");
     Tkx::update();
     set_focus_grab($status_box);
-    repo_sync(1);
+    repo_sync(!$first_time);
     area_sync(1);
     refresh();
     status_message("DONEn", tag =>
"h2");

This will prevent ppm from contacting the server each time
the GUI
starts up, and you would have to select "File >
Refresh All Data"
manually when you want to sync up with the state of the
repositories.

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-06 12:51:04
"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
[1-2]

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