From fc02ed1065ea4d3f2a55ace2b994a459ba4a5d8a Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 5 Apr 2010 00:41:28 -0400 Subject: [PATCH] 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 Tested-by: Derrick Brashear --- src/packaging/MacOS/decode-panic | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/packaging/MacOS/decode-panic b/src/packaging/MacOS/decode-panic index 42fc1bd2e8..a9a85b8907 100755 --- a/src/packaging/MacOS/decode-panic +++ b/src/packaging/MacOS/decode-panic @@ -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";