Mantis - pkg_get
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3477 | regular use | minor | always | 2009-03-20 19:06 | 2009-03-24 10:33 |
|
|||||
Reporter: | iddecker | Platform: | |||
Assigned To: | bonivart | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | 1.5b3 | Resolution: | fixed | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0003477: catalog is always updated if catalog on mirror is old | ||||
Description: | when the catalog on the mirror is older than 14 days, the catalog is always updated, because the downloaded catalog file is older than 14 days | ||||
Steps To Reproduce: | use a stable mirror (eg http://ftp.heanet.ie/pub/opencsw/stable) [^] | ||||
Additional Information: |
solution: touch catalog after download patch: --- /opt/csw/bin/pkgutil 2009-03-19 14:16:33.000000000 +0100 +++ pkgutil_ 2009-03-20 19:01:54.083912137 +0100 @@ -66,9 +66,9 @@ sub check_catalog { my($always) = @_; - my $age = 0; foreach my $url (@mirror) { + my $age = 0; my $filename = mangle_url($url); my $age_i = -M $filename if (-r $filename); $age = $age_i if defined($age_i) && $age_i > $age; @@ -192,6 +192,7 @@ } else { $status = system("$wget $wgetopts -O $filename $url/catalog"); } + system("touch $filename"); if ($status) { print "\nFetching of catalog failed.\n"; exit 1; |
||||
Relationships | |||||
Attached Files: | |||||
|
|||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-03-20 19:06 | iddecker | New Issue | |||
2009-03-23 15:08 | bonivart | Status | new => assigned | ||
2009-03-23 15:08 | bonivart | Assigned To | => bonivart | ||
2009-03-23 15:09 | bonivart | Note Added: 0005696 | |||
2009-03-23 21:00 | bonivart | Note Added: 0005713 | |||
2009-03-24 10:33 | bonivart | Note Added: 0005718 | |||
2009-03-24 10:33 | bonivart | Status | assigned => closed | ||
2009-03-24 10:33 | bonivart | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|