equal
deleted
inserted
replaced
17 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # fields enclosed by brackets "[]" replaced with your own identifying |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 # Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
22 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # |
23 # |
24 # |
24 # |
25 # unpack.py - an archive unpack utility |
25 # unpack.py - an archive unpack utility |
26 # |
26 # |
27 # A simple program to uncompress and unpack source archive files into a target |
27 # A simple program to uncompress and unpack source archive files into a target |
47 elif (re.search("(\.xz)$", filename) != None): |
47 elif (re.search("(\.xz)$", filename) != None): |
48 uncompress = "/usr/bin/xz -dc" |
48 uncompress = "/usr/bin/xz -dc" |
49 elif (re.search("(\.zip)$", filename) != None): |
49 elif (re.search("(\.zip)$", filename) != None): |
50 uncompress = "/usr/bin/unzip -qo" |
50 uncompress = "/usr/bin/unzip -qo" |
51 elif (re.search("(\.gem)$", filename) != None): |
51 elif (re.search("(\.gem)$", filename) != None): |
52 uncompress = "/usr/bin/gem unpack" |
52 ruby_ver = os.getenv('RUBY_VERSION', '') |
|
53 uncompress = "/usr/ruby/" + ruby_ver + "/bin/gem unpack" |
53 |
54 |
54 unpack = " | gtar -xf -" |
55 unpack = " | gtar -xf -" |
55 |
56 |
56 if (re.search("(\.zip)$", filename) != None): |
57 if (re.search("(\.zip)$", filename) != None): |
57 unpack = "" |
58 unpack = "" |