Subversion Repositories DevTools

Rev

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

Rev 229 Rev 335
Line 6... Line 6...
6
# Module type   : Makefile system
6
# Module type   : Makefile system
7
# Compiler(s)   : n/a
7
# Compiler(s)   : n/a
8
# Environment(s): jats
8
# Environment(s): jats
9
#
9
#
10
# Description:
10
# Description:
11
#       Mainatin a local cache of dpkg_Archive
11
#       Maintain a local cache of dpkg_Archive
12
#
12
#
13
# Notes:
13
# Notes:
14
#       Stopped using the JATS "cp.exe" utility as there was a wierd problem under
14
#       Stopped using the JATS "cp.exe" utility as there was a weird problem under
15
#       windows. The package orahops-ssw-install/1.0.1000.ssw could not be installed
15
#       windows. The package orahops-ssw-install/1.0.1000.ssw could not be installed
16
#       correctly. It appaesr that the 'cp' could not process the subdir pair
16
#       correctly. It appears that the 'cp' could not process the subdir pair
17
#       "DBMGR/DBMGR". Change the name it was OK.
17
#       "DBMGR/DBMGR". Change the name it was OK.
18
#
18
#
19
#       Solution: Avoid system functions
19
#       Solution: Avoid system functions
20
#
20
#
21
#......................................................................#
21
#......................................................................#
Line 374... Line 374...
374
        my $opr = "Update";
374
        my $opr = "Update";
375
 
375
 
376
 
376
 
377
        #
377
        #
378
        #   Setup error recovery
378
        #   Setup error recovery
379
        #       1) Tag the directoryto be deleted on error
379
        #       1) Tag the directory to be deleted on error
380
        #
380
        #
381
        $remove_on_error = "$cache/$_";
381
        $remove_on_error = "$cache/$_";
382
        ErrorConfig( 'on_exit' => \&error_recovery );
382
        ErrorConfig( 'on_exit' => \&error_recovery );
383
 
383
 
384
        #
384
        #
385
        #   Not a forced refesh. Ensure that the cached copy is
385
        #   Not a forced refresh. Ensure that the cached copy is
386
        #   up to date. Examine descpkg
386
        #   up to date. Examine descpkg
387
        #
387
        #
388
        if ( $dir_found )
388
        if ( $dir_found )
389
        {
389
        {
390
            if ( -f "$cache/$_/built.cache" )
390
            if ( -f "$cache/$_/built.cache" )
Line 701... Line 701...
701
This option will force the program to examine all packages within the cache and
701
This option will force the program to examine all packages within the cache and
702
refresh packages that are out of date. This option may be combined with other
702
refresh packages that are out of date. This option may be combined with other
703
packages specified on the command line.
703
packages specified on the command line.
704
 
704
 
705
A package is deemed to be out-of-date if the modification time of the package's
705
A package is deemed to be out-of-date if the modification time of the package's
706
descpkg file in the cache is older than the one in the achive.
706
descpkg file in the cache is older than the one in the archive.
707
 
707
 
708
=item B<-quiet>
708
=item B<-quiet>
709
 
709
 
710
This option will suppress almost all of the progress messages, except for a single
710
This option will suppress almost all of the progress messages, except for a single
711
copy message. It is intended to be used when the program is called from another
711
copy message. It is intended to be used when the program is called from another