macos panic decoder update

make it able to decode prerelease and point release panics

Change-Id: Ibf28a7df7f0a21ff8f297d548a6b853a5e296064
Reviewed-on: http://gerrit.openafs.org/1692
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-04-05 00:41:28 -04:00
parent ec74299c7c
commit fc02ed1065

View File

@ -139,6 +139,13 @@ sub extract_openafs {
$oversion =~ /org.openafs.filesystems.afs\(([0-9.]+)\)/;
my $vers = $1;
$vers =~ s/fc/pre/;
my $dmgvers = $vers;
if ($vers =~ /([0-9]+)f([0-9]+)/) {
$dmgvers = "$1" . "." . "$2";
$vers = "$1";
}
my $odmg = "$oarchive/$vers/macos-10.${major}/OpenAFS-$vers-\*.dmg";
if ($option_verbose) {
print "$hdutil $odmg extractall OpenAFS.pkg $tempdir/OpenAFS.pkg\n";