Hello,
Here is a patch to update si_updateclient for version 4.0.2 of SystemImager.
As delivered, si_updateclient was updating every file on the harddisk of
the client even if these files have not been modified in the image.
It comes from the '-I' option of rsync (ignore dates of files) which was
added for the overrides. But it is also used for the main files.
I have added the var $rsyncopt which is '-av' for the main files of the
image and '-aIv' for the overrides.
Expecting this will help.
If it is not the right place to send this mail please tel me, I'll
resend it.
Cheers,
Ph.P.
--
Philippe Poilbarbe CLS Space Oceanography Division
mailto:[EMAIL PROTECTED]
phoneto:+33(5)61394727
Parc technologique du canal
8-10, Rue Hermes
31520 Ramonville St-Agne
France
--- si_updateclient.sauve_php 2007-12-06 12:18:34.000000000 +0100
+++ si_updateclient 2008-02-08 15:50:51.000000000 +0100
@@ -570,6 +570,7 @@
foreach my $module ($image, @overrides) {
## leave this off unless we're doing the image
my $delete = "";
+ my $rsyncopt = "-aIv";
# finalize command
if ($imagepass) {
@@ -577,11 +578,12 @@
## files that aren't on the server side
$delete = "--delete" unless ($no_delete);
$imagepass = 0;
+ $rsyncopt = "-av";
}
else {
$module = "overrides/$module";
}
- $cmd = "rsync -aIv --numeric-ids $delete $cmdopts rsync://${server}:${port}/${module}${directory} ${directory}";
+ $cmd = "rsync $rsyncopt --numeric-ids $delete $cmdopts rsync://${server}:${port}/${module}${directory} ${directory}";
# execute command
if ($dry_run) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel