@@ -154,20 +154,25 @@ def install(useversion = true)
154154 # I spent a lot of time trying to figure out a solution that didn't
155155 # require parsing the `nimclient -o showres` output and was unable to
156156 # do so.
157- self ::HEADER_LINE_REGEX = /^([^\s ]+)\s +[^@]+@@(I|R):(\1 )\s +[^\s ]+$/
158- self ::PACKAGE_LINE_REGEX = /^.*@@(I|R):(.*)$/
159- self ::RPM_PACKAGE_REGEX = /^(.*)-(.*-\d +) \2 $/
157+ self ::HEADER_LINE_REGEX = /^([^\s ]+)\s +[^@]+@@(I|R|S ):(\1 )\s +[^\s ]+$/
158+ self ::PACKAGE_LINE_REGEX = /^.*@@(I|R|S ):(.*)$/
159+ self ::RPM_PACKAGE_REGEX = /^(.*)-(.*-\d +\w * ) \2 $/
160160 self ::INSTALLP_PACKAGE_REGEX = /^(.*) (.*)$/
161161
162162 # Here is some sample output that shows what the above regexes will be up
163163 # against:
164- # FOR AN INSTALLP PACKAGE:
164+ # FOR AN INSTALLP(bff) PACKAGE:
165165 #
166166 # mypackage.foo ALL @@I:mypackage.foo _all_filesets
167- # @ 1.2.3.1 MyPackage Runtime Environment @@I:mypackage.foo 1.2.3.1
168167 # + 1.2.3.4 MyPackage Runtime Environment @@I:mypackage.foo 1.2.3.4
169168 # + 1.2.3.8 MyPackage Runtime Environment @@I:mypackage.foo 1.2.3.8
170169 #
170+ # FOR AN INSTALLP(bff) PACKAGE with security update:
171+ #
172+ # bos.net ALL @@S:bos.net _all_filesets
173+ # + 7.2.0.1 TCP/IP ntp Applications @@S:bos.net.tcp.ntp 7.2.0.1
174+ # + 7.2.0.2 TCP/IP ntp Applications @@S:bos.net.tcp.ntp 7.2.0.2
175+ #
171176 # FOR AN RPM PACKAGE:
172177 #
173178 # mypackage.foo ALL @@R:mypackage.foo _all_filesets
@@ -243,7 +248,7 @@ def parse_showres_package_line(line)
243248 package_string = match . captures [ 1 ]
244249
245250 case package_type_flag
246- when "I"
251+ when "I" , "S"
247252 parse_installp_package_string ( package_string )
248253 when "R"
249254 parse_rpm_package_string ( package_string )
0 commit comments