Subversion Repositories DevTools

Rev

Rev 5744 | Rev 5818 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5744 Rev 5783
Line 49... Line 49...
49
my $opt_quiet;
49
my $opt_quiet;
50
my $opt_update_all;
50
my $opt_update_all;
51
my $opt_age;
51
my $opt_age;
52
my $opt_test;
52
my $opt_test;
53
my $opt_wait = 0;
53
my $opt_wait = 0;
-
 
54
my $opt_cache = 1;
54
 
55
 
55
#
56
#
56
#   Global Variables
57
#   Global Variables
57
#
58
#
58
my $GBE_DPKG            = $ENV{'GBE_DPKG'};                     # The Master repository
59
my $GBE_DPKG            = $ENV{'GBE_DPKG'};                     # The Master repository
Line 96... Line 97...
96
                "verbose:+"                 => \$opt_verbose,           # flag, multiple use allowed
97
                "verbose:+"                 => \$opt_verbose,           # flag, multiple use allowed
97
                "debug:+"                   => \$opt_debug,             # flag, multiple use allowed
98
                "debug:+"                   => \$opt_debug,             # flag, multiple use allowed
98
                "flush"                     => \$opt_flush,             # flag
99
                "flush"                     => \$opt_flush,             # flag
99
                "clear"                     => \$opt_clear,             # flag
100
                "clear"                     => \$opt_clear,             # flag
100
                "wait!"                     => \$opt_wait,              # [no]flag
101
                "wait!"                     => \$opt_wait,              # [no]flag
-
 
102
                "cache!"                    => \$opt_cache,             # [no]flag
101
                "refresh!"                  => \$opt_refresh,           # [no]flag
103
                "refresh!"                  => \$opt_refresh,           # [no]flag
102
                "refresh_all|refresh-all"   => \$opt_refresh_all,       # flag
104
                "refresh_all|refresh-all"   => \$opt_refresh_all,       # flag
103
                "update_all|update-all"     => \$opt_update_all,        # flag
105
                "update_all|update-all"     => \$opt_update_all,        # flag
104
                "list"                      => \$opt_list,              # flag
106
                "list"                      => \$opt_list,              # flag
105
                "dir"                       => \$opt_list_short,        # flag
107
                "dir"                       => \$opt_list_short,        # flag
Line 226... Line 228...
226
        }
228
        }
227
    }
229
    }
228
}
230
}
229
 
231
 
230
#
232
#
-
 
233
#   Allow replication update without also caching the package
-
 
234
#       This is used to prevent ALL replicated packages beinng cached.
-
 
235
#       Packages do not need to be cached if they are not used by a build on the current machine
-
 
236
#       This will prevent the cache from filling up with unused packages.
-
 
237
#
-
 
238
unless ($opt_cache)
-
 
239
{
-
 
240
    Message("Packages not cached");
-
 
241
    exit 0;
-
 
242
}
-
 
243
 
-
 
244
#
231
#   No cache - nothing to do
245
#   No cache - nothing to do
232
#   Generate a status message and exit
246
#   Generate a status message and exit
233
#
247
#
234
unless ( $cache )
248
unless ( $cache )
235
{
249
{
Line 741... Line 755...
741
    -dir               - List cache contents
755
    -dir               - List cache contents
742
    -export            - Generate a list of cached packages
756
    -export            - Generate a list of cached packages
743
    -refresh_all       - Refresh all packages within the cache
757
    -refresh_all       - Refresh all packages within the cache
744
    -update_all        - Update all packages within the cache as required
758
    -update_all        - Update all packages within the cache as required
745
    -[no]wait          - Wait for package replication
759
    -[no]wait          - Wait for package replication
-
 
760
    -[no]cache         - Cache packages [default]
746
    -quiet             - Suppress warnings
761
    -quiet             - Suppress warnings
747
    -age=nn            - Remove all packages older than nn days
762
    -age=nn            - Remove all packages older than nn days
748
    -test              - Use with -age to report ages
763
    -test              - Use with -age to report ages
749
 
764
 
750
=head1 OPTIONS
765
=head1 OPTIONS
Line 827... Line 842...
827
The wait-for replication step is designed to address an issue where the build system
842
The wait-for replication step is designed to address an issue where the build system
828
is remotely located from the main archive. If required package versions are not in the
843
is remotely located from the main archive. If required package versions are not in the
829
replica then this utility would copy them from the main archive. This can be very very 
844
replica then this utility would copy them from the main archive. This can be very very 
830
slow - much slower than waiting for the replication to complete.
845
slow - much slower than waiting for the replication to complete.
831
 
846
 
-
 
847
=item B<-[no]cache>
-
 
848
 
-
 
849
This option can be used to prevent the named packages from being cached. The default mode
-
 
850
is to cache the named packages.
-
 
851
 
-
 
852
It is intended to be used with the '-wait' option so that replication is complete
-
 
853
but the local caching is not perform. To be used for non-ant builds to prevent local caching
-
 
854
of packages that are not used in a build.
-
 
855
 
832
=item B<-quiet>
856
=item B<-quiet>
833
 
857
 
834
This option will suppress almost all of the progress messages, except for a single
858
This option will suppress almost all of the progress messages, except for a single
835
copy message. It is intended to be used when the program is called from another
859
copy message. It is intended to be used when the program is called from another
836
script.
860
script.