18 | | # 2000: locale bugfix |
19 | | # Andrew V. Samoilov <sav@bcs.zp.ua> |
20 | | # 2004: Whitespace(s) & single quote(s) in filename workaround |
21 | | # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=64007 |
22 | | # Slava Zanko <slavazanko@gmail.com> |
23 | | # 2009: Totally rewritten. |
24 | | # Alexander Chumachenko <ledest@gmail.com> |
25 | | # 2013: add dependency version output |
26 | | # Denis Silakov <denis.silakov@rosalab.ru> |
27 | | # 2013: tar payload support. |
28 | | # Arkadiusz Miśkiewicz <arekm@maven.pl> |
29 | | # 2013: improve support for EPOCH |
30 | | # add support for PREINPROG/POSTINPROG/PREUNPROG/POSTUNPROG |
31 | | # add support for VERIFYSCRIPTPROG |
32 | | # add support for TRIGGERSCRIPTS/TRIGGERSCRIPTPROG |
33 | | # Jiri Tyr <jiri.tyr@gmail.com> |
34 | | # 2016: add support for PRETRANS/PRETRANSPROG/POSTTRANS/POSTTRANSPROG |
| 18 | # locale bugfix |
| 19 | # Andrew V. Samoilov <sav@bcs.zp.ua> 2004 |
| 20 | # Whitespace(s) & single quote(s) in filename workaround |
| 21 | # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=64007 |
| 22 | # Slava Zanko <slavazanko@gmail.com> 2009 |
| 23 | # Totally rewritten |
| 24 | # Alexander Chumachenko <ledest@gmail.com> 2013 |
| 25 | # add dependency version output |
| 26 | # Denis Silakov <denis.silakov@rosalab.ru> 2013 |
| 27 | # tar payload support |
| 28 | # Arkadiusz Miśkiewicz <arekm@maven.pl> 2013 |
| 29 | # improve support for EPOCH |
| 30 | # add support for PREINPROG/POSTINPROG/PREUNPROG/POSTUNPROG |
| 31 | # add support for VERIFYSCRIPTPROG |
| 32 | # add support for TRIGGERSCRIPTS/TRIGGERSCRIPTPROG |
| 33 | # Jiri Tyr <jiri.tyr@gmail.com> 2016 |
| 34 | # Added support for PRETRANS/POSTTRANS. |
| 35 | # Removed creation of all *PROG files. |
| 36 | # Code simplification and formating. |
143 | | mcrpmfs_list_fastRPM () |
144 | | { |
145 | | echo "$FILEPREF 0 $DATE INFO/DISTRIBUTION" |
146 | | echo "$FILEPREF 0 $DATE INFO/VENDOR" |
147 | | echo "$FILEPREF 0 $DATE INFO/DESCRIPTION" |
148 | | echo "$FILEPREF 0 $DATE INFO/SUMMARY" |
149 | | echo "dr-xr-xr-x 1 root root 0 $DATE INFO/SCRIPTS" |
150 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/PRETRANS" |
151 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/POSTTRANS" |
152 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/PREIN" |
153 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/POSTIN" |
154 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/PREUN" |
155 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/POSTUN" |
156 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/VERIFYSCRIPT" |
157 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/TRIGGERSCRIPTS" |
158 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/ALL" |
159 | | echo "$FILEPREF 0 $DATE INFO/PACKAGER" |
160 | | echo "$FILEPREF 0 $DATE INFO/URL" |
161 | | echo "$FILEPREF 0 $DATE INFO/EPOCH" |
162 | | echo "$FILEPREF 0 $DATE INFO/LICENSE" |
163 | | echo "$FILEPREF 0 $DATE INFO/REQUIRES" |
164 | | echo "$FILEPREF 0 $DATE INFO/OBSOLETES" |
165 | | echo "$FILEPREF 0 $DATE INFO/PROVIDES" |
166 | | echo "$FILEPREF 0 $DATE INFO/CONFLICTS" |
167 | | echo "$FILEPREF 0 $DATE INFO/CHANGELOG" |
| 144 | return 1 |
177 | | if test "`mcrpmfs_getRawOneTag \"%{RPMTAG_PRETRANS}%{RPMTAG_POSTTRANS}%{RPMTAG_PREIN}%{RPMTAG_POSTIN}%{RPMTAG_PREUN}%{RPMTAG_POSTUN}%{VERIFYSCRIPT}%{TRIGGERSCRIPTS}\"`" != "(none)(none)(none)(none)(none)(none)(none)(none)"; then |
178 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/PRETRANS" "RPMTAG_PRETRANS" "raw" |
179 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/POSTTRANS" "RPMTAG_POSTTRANS" "raw" |
180 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/PREIN" "RPMTAG_PREIN" "raw" |
181 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/POSTIN" "RPMTAG_POSTIN" "raw" |
182 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/PREUN" "RPMTAG_PREUN" "raw" |
183 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/POSTUN" "RPMTAG_POSTUN" "raw" |
184 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/VERIFYSCRIPT" "VERIFYSCRIPT" "raw" |
185 | | mcrpmfs_printOneMetaInfo "INFO/SCRIPTS/TRIGGERSCRIPTS" "TRIGGERSCRIPTS" "raw" |
186 | | echo "$FILEPREF 0 $DATE INFO/SCRIPTS/ALL" |
187 | | fi |
| 148 | mcrpmfs_list_fastRPM() { |
| 149 | echo "$FILEPREF $DATE INFO/CHANGELOG" |
| 150 | echo "$FILEPREF $DATE INFO/CONFLICTS" |
| 151 | echo "$FILEPREF $DATE INFO/DESCRIPTION" |
| 152 | echo "$FILEPREF $DATE INFO/DISTRIBUTION" |
| 153 | echo "$FILEPREF $DATE INFO/EPOCH" |
| 154 | echo "$FILEPREF $DATE INFO/LICENSE" |
| 155 | echo "$FILEPREF $DATE INFO/OBSOLETES" |
| 156 | echo "$FILEPREF $DATE INFO/PACKAGER" |
| 157 | echo "$FILEPREF $DATE INFO/PROVIDES" |
| 158 | echo "$FILEPREF $DATE INFO/REQUIRES" |
| 159 | echo "$FILEPREF $DATE INFO/SUMMARY" |
| 160 | echo "$FILEPREF $DATE INFO/URL" |
| 161 | echo "$FILEPREF $DATE INFO/VENDOR" |
| 162 | echo "$DIRPREF $DATE INFO/SCRIPTS" |
| 163 | echo "$FILEPREF $DATE INFO/SCRIPTS/ALL" |
| 164 | echo "$FILEPREF $DATE INFO/SCRIPTS/POSTIN" |
| 165 | echo "$FILEPREF $DATE INFO/SCRIPTS/POSTTRANS" |
| 166 | echo "$FILEPREF $DATE INFO/SCRIPTS/POSTUN" |
| 167 | echo "$FILEPREF $DATE INFO/SCRIPTS/PREIN" |
| 168 | echo "$FILEPREF $DATE INFO/SCRIPTS/PRETRANS" |
| 169 | echo "$FILEPREF $DATE INFO/SCRIPTS/PREUN" |
| 170 | echo "$FILEPREF $DATE INFO/SCRIPTS/TRIGGERSCRIPTS" |
| 171 | echo "$FILEPREF $DATE INFO/SCRIPTS/VERIFYSCRIPT" |
| 172 | } |
266 | | HEADER) mcrpmfs_getDesription > "$2"; exit 0;; |
267 | | INSTALL) |
268 | | echo "# Run this script to install this RPM package" > "$2" |
269 | | echo $RPM -ivh "${rpm_filename}" >> "$2" |
270 | | exit 0 |
271 | | ;; |
272 | | UPGRADE) |
273 | | echo "# Run this to upgrade this RPM package" > "$2" |
274 | | echo $RPM -Uvh "${rpm_filename}" >> "$2" |
275 | | exit 0 |
276 | | ;; |
277 | | REBUILD) |
278 | | echo "# Run this to rebuild this RPM package" > "$2" |
279 | | echo $RPMBUILD --rebuild "${rpm_filename}" >> "$2" |
280 | | exit 0 |
281 | | ;; |
282 | | ERROR) mcrpmfs_getDesription > /dev/null 2> "$2"; exit 0;; |
283 | | INFO/NAME-VERSION-RELEASE) |
284 | | echo `mcrpmfs_getOneTag "NAME"`-`mcrpmfs_getOneTag "VERSION"`-`mcrpmfs_getOneTag "RELEASE"` > "$2" |
285 | | exit 0 |
286 | | ;; |
287 | | INFO/NAME-EPOCH:VERSION-RELEASE) |
288 | | echo `mcrpmfs_getOneTag "NAME"`-`mcrpmfs_getOneTag "EPOCH"`:`mcrpmfs_getOneTag "VERSION"`-`mcrpmfs_getOneTag "RELEASE"` > "$2" |
289 | | exit 0 |
290 | | ;; |
291 | | INFO/RELEASE) mcrpmfs_getOneTag "RELEASE" > "$2"; exit 0;; |
292 | | INFO/GROUP) mcrpmfs_getRawOneTag "%{GROUP}\n" > "$2"; exit 0;; |
293 | | INFO/DISTRIBUTION) mcrpmfs_getOneTag "DISTRIBUTION" > "$2"; exit 0;; |
294 | | INFO/VENDOR) mcrpmfs_getOneTag "VENDOR" > "$2"; exit 0;; |
295 | | INFO/BUILDHOST) mcrpmfs_getRawOneTag "%{BUILDHOST}\n" > "$2"; exit 0;; |
296 | | INFO/SOURCERPM) mcrpmfs_getRawOneTag "%{SOURCERPM}\n" > "$2"; exit 0;; |
297 | | INFO/DESCRIPTION) mcrpmfs_getRawOneTag "%{DESCRIPTION}\n" > "$2"; exit 0;; |
298 | | INFO/PACKAGER) mcrpmfs_getOneTag "PACKAGER" > "$2"; exit 0;; |
299 | | INFO/URL) mcrpmfs_getOneTag "URL" >"$2"; exit 0;; |
300 | | INFO/BUILDTIME) mcrpmfs_getRawOneTag "%{BUILDTIME:date}\n" >"$2"; exit 0;; |
301 | | INFO/EPOCH) mcrpmfs_getOneTag "EPOCH" >"$2"; exit 0;; |
302 | | INFO/LICENSE) mcrpmfs_getOneTag "LICENSE" >"$2"; exit 0;; |
303 | | INFO/RPMVERSION) mcrpmfs_getRawOneTag "%{RPMVERSION}\n" >"$2"; exit 0;; |
304 | | INFO/REQUIRES) mcrpmfs_getRawOneTag "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" >"$2"; exit 0;; |
305 | | INFO/PROVIDES) mcrpmfs_getRawOneTag "[%{PROVIDES} %{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}\n]" >"$2"; exit 0;; |
306 | | INFO/SCRIPTS/PRETRANS) mcrpmfs_getRawOneTag "%{RPMTAG_PRETRANS}\n" >"$2"; exit 0;; |
307 | | INFO/SCRIPTS/PRETRANSPROG) mcrpmfs_getRawOneTag "%{RPMTAG_PRETRANSPROG}\n" >"$2"; exit 0;; |
308 | | INFO/SCRIPTS/POSTTRANS) mcrpmfs_getRawOneTag "%{RPMTAG_POSTTRANS}\n" >"$2"; exit 0;; |
309 | | INFO/SCRIPTS/POSTTRANSPROG) mcrpmfs_getRawOneTag "%{RPMTAG_POSTTRANSPROG}\n" >"$2"; exit 0;; |
310 | | INFO/SCRIPTS/PREIN) mcrpmfs_getRawOneTag "%{RPMTAG_PREIN}\n" >"$2"; exit 0;; |
311 | | INFO/SCRIPTS/PREINPROG) mcrpmfs_getRawOneTag "%{RPMTAG_PREINPROG}\n" >"$2"; exit 0;; |
312 | | INFO/SCRIPTS/POSTIN) mcrpmfs_getRawOneTag "%{RPMTAG_POSTIN}\n" >"$2"; exit 0;; |
313 | | INFO/SCRIPTS/POSTINPROG) mcrpmfs_getRawOneTag "%{RPMTAG_POSTINPROG}\n" >"$2"; exit 0;; |
314 | | INFO/SCRIPTS/PREUN) mcrpmfs_getRawOneTag "%{RPMTAG_PREUN}\n" >"$2"; exit 0;; |
315 | | INFO/SCRIPTS/PREUNPROG) mcrpmfs_getRawOneTag "%{RPMTAG_PREUNPROG}\n" >"$2"; exit 0;; |
316 | | INFO/SCRIPTS/POSTUN) mcrpmfs_getRawOneTag "%{RPMTAG_POSTUN}\n" >"$2"; exit 0;; |
317 | | INFO/SCRIPTS/POSTUNPROG) mcrpmfs_getRawOneTag "%{RPMTAG_POSTUNPROG}\n" >"$2"; exit 0;; |
318 | | INFO/SCRIPTS/VERIFYSCRIPT) mcrpmfs_getRawOneTag "%{VERIFYSCRIPT}\n" > "$2"; exit 0;; |
319 | | INFO/SCRIPTS/VERIFYSCRIPTPROG) mcrpmfs_getRawOneTag "%{VERIFYSCRIPTPROG}\n" > "$2"; exit 0;; |
320 | | INFO/SCRIPTS/TRIGGERSCRIPTS) $RPM -qp --triggers "${rpm_filename}" > "$2"; exit 0;; |
321 | | INFO/SCRIPTS/TRIGGERSCRIPTPROG) mcrpmfs_getRawOneTag "%{TRIGGERSCRIPTPROG}\n" > "$2"; exit 0;; |
322 | | INFO/SCRIPTS/ALL) $RPM -qp --scripts "${rpm_filename}" > "$2"; exit 0;; |
323 | | INFO/SUMMARY) mcrpmfs_getRawOneTag "%{SUMMARY}\n" > "$2"; exit 0;; |
324 | | INFO/OS) mcrpmfs_getRawOneTag "%{OS}\n" > "$2"; exit 0;; |
325 | | INFO/CHANGELOG) mcrpmfs_getRawOneTag "[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]\n" > "$2"; exit 0;; |
326 | | INFO/SIZE) mcrpmfs_getRawOneTag "%{SIZE} bytes\n" > "$2"; exit 0;; |
327 | | INFO/OBSOLETES) mcrpmfs_getRawOneTag "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" > "$2"; exit 0;; |
328 | | INFO/CONFLICTS) mcrpmfs_getRawOneTag "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" >"$2"; exit 0;; |
329 | | CONTENTS.*) $RPM2CPIO "${rpm_filename}" > "$2"; exit 0;; |
330 | | *) |
331 | | ;; |
| 260 | INSTALL) |
| 261 | echo "# Run this script to install this RPM package" >"$2" |
| 262 | echo $RPM -ivh "$rpm_filename" >>"$2" |
| 263 | exit 0 |
| 264 | ;; |
| 265 | REBUILD) |
| 266 | echo "# Run this to rebuild this RPM package" >"$2" |
| 267 | echo $RPMBUILD --rebuild "$rpm_filename" >>"$2" |
| 268 | exit 0 |
| 269 | ;; |
| 270 | UPGRADE) |
| 271 | echo "# Run this to upgrade this RPM package" >"$2" |
| 272 | echo $RPM -Uvh "$rpm_filename" >>"$2" |
| 273 | exit 0 |
| 274 | ;; |
| 275 | HEADER) |
| 276 | mcrpmfs_getDesription >"$2" |
| 277 | exit 0 |
| 278 | ;; |
| 279 | ERROR) |
| 280 | mcrpmfs_getDesription >/dev/null 2>"$2" |
| 281 | exit 0 |
| 282 | ;; |
| 283 | CONTENTS.*) |
| 284 | $RPM2CPIO "$rpm_filename" >"$2" |
| 285 | exit 0 |
| 286 | ;; |
| 287 | INFO/BUILDHOST) |
| 288 | mcrpmfs_getRawOneTag "%{BUILDHOST}\n" >"$2" |
| 289 | exit 0 |
| 290 | ;; |
| 291 | INFO/BUILDTIME) |
| 292 | mcrpmfs_getRawOneTag "%{BUILDTIME:date}\n" >"$2" |
| 293 | exit 0 |
| 294 | ;; |
| 295 | INFO/CHANGELOG) |
| 296 | mcrpmfs_getRawOneTag "[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]\n" | sort | uniq >"$2" |
| 297 | exit 0 |
| 298 | ;; |
| 299 | INFO/CONFLICTS) |
| 300 | mcrpmfs_getRawOneTag "[%{CONFLICTNAME} %{CONFLICTFLAGS:depflags} %{CONFLICTVERSION}\n]" | sort | uniq >"$2" |
| 301 | exit 0 |
| 302 | ;; |
| 303 | INFO/DESCRIPTION) |
| 304 | mcrpmfs_getRawOneTag "%{DESCRIPTION}\n" >"$2" |
| 305 | exit 0 |
| 306 | ;; |
| 307 | INFO/DISTRIBUTION) |
| 308 | mcrpmfs_getOneTag "DISTRIBUTION" >"$2" |
| 309 | exit 0 |
| 310 | ;; |
| 311 | INFO/EPOCH) |
| 312 | mcrpmfs_getOneTag "EPOCH" >"$2" |
| 313 | exit 0 |
| 314 | ;; |
| 315 | INFO/GROUP) |
| 316 | mcrpmfs_getRawOneTag "%{GROUP}\n" >"$2" |
| 317 | exit 0 |
| 318 | ;; |
| 319 | INFO/LICENSE) |
| 320 | mcrpmfs_getOneTag "LICENSE" >"$2" |
| 321 | exit 0 |
| 322 | ;; |
| 323 | INFO/NAME-EPOCH:VERSION-RELEASE) |
| 324 | echo `mcrpmfs_getOneTag "NAME"`-`mcrpmfs_getOneTag "EPOCH"`:`mcrpmfs_getOneTag "VERSION"`-`mcrpmfs_getOneTag "RELEASE"` >"$2" |
| 325 | exit 0 |
| 326 | ;; |
| 327 | INFO/NAME-VERSION-RELEASE) |
| 328 | echo `mcrpmfs_getOneTag "NAME"`-`mcrpmfs_getOneTag "VERSION"`-`mcrpmfs_getOneTag "RELEASE"` >"$2" |
| 329 | exit 0 |
| 330 | ;; |
| 331 | INFO/OBSOLETES) |
| 332 | mcrpmfs_getRawOneTag "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" | sort | uniq >"$2" |
| 333 | exit 0 |
| 334 | ;; |
| 335 | INFO/OS) |
| 336 | mcrpmfs_getRawOneTag "%{OS}\n" >"$2" |
| 337 | exit 0 |
| 338 | ;; |
| 339 | INFO/PACKAGER) |
| 340 | mcrpmfs_getOneTag "PACKAGER" >"$2" |
| 341 | exit 0 |
| 342 | ;; |
| 343 | INFO/PROVIDES) |
| 344 | mcrpmfs_getRawOneTag "[%{PROVIDES} %{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}\n]" | sort | uniq >"$2" |
| 345 | exit 0 |
| 346 | ;; |
| 347 | INFO/RELEASE) |
| 348 | mcrpmfs_getOneTag "RELEASE" >"$2" |
| 349 | exit 0 |
| 350 | ;; |
| 351 | INFO/REQUIRES) |
| 352 | mcrpmfs_getRawOneTag "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" | sort | uniq >"$2" |
| 353 | exit 0 |
| 354 | ;; |
| 355 | INFO/RPMVERSION) |
| 356 | mcrpmfs_getRawOneTag "%{RPMVERSION}\n" >"$2" |
| 357 | exit 0 |
| 358 | ;; |
| 359 | INFO/SIZE) |
| 360 | mcrpmfs_getRawOneTag "%{SIZE} bytes\n" >"$2" |
| 361 | exit 0 |
| 362 | ;; |
| 363 | INFO/SOURCERPM) |
| 364 | mcrpmfs_getRawOneTag "%{SOURCERPM}\n" >"$2" |
| 365 | exit 0 |
| 366 | ;; |
| 367 | INFO/SUMMARY) |
| 368 | mcrpmfs_getRawOneTag "%{SUMMARY}\n" >"$2" |
| 369 | exit 0 |
| 370 | ;; |
| 371 | INFO/URL) |
| 372 | mcrpmfs_getOneTag "URL" >"$2" |
| 373 | exit 0 |
| 374 | ;; |
| 375 | INFO/VENDOR) |
| 376 | mcrpmfs_getOneTag "VENDOR" >"$2" |
| 377 | exit 0 |
| 378 | ;; |
| 379 | INFO/SCRIPTS/ALL) |
| 380 | $RPM -qp --scripts "$rpm_filename" >"$2" |
| 381 | exit 0 |
| 382 | ;; |
| 383 | INFO/SCRIPTS/PREIN) |
| 384 | echo -n "#!" >"$2" |
| 385 | mcrpmfs_getRawOneTag "%{RPMTAG_PREINPROG}\n" >>"$2" |
| 386 | mcrpmfs_getRawOneTag "%{RPMTAG_PREIN}\n" >>"$2" |
| 387 | exit 0 |
| 388 | ;; |
| 389 | INFO/SCRIPTS/POSTIN) |
| 390 | echo -n "#!" >"$2" |
| 391 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTINPROG}\n" >>"$2" |
| 392 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTIN}\n" >>"$2" |
| 393 | exit 0 |
| 394 | ;; |
| 395 | INFO/SCRIPTS/PREUN) |
| 396 | echo -n "#!" >"$2" |
| 397 | mcrpmfs_getRawOneTag "%{RPMTAG_PREUNPROG}\n" >>"$2" |
| 398 | mcrpmfs_getRawOneTag "%{RPMTAG_PREUN}\n" >>"$2" |
| 399 | exit 0 |
| 400 | ;; |
| 401 | INFO/SCRIPTS/POSTUN) |
| 402 | echo -n "#!" >"$2" |
| 403 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTUNPROG}\n" >>"$2" |
| 404 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTUN}\n" >>"$2" |
| 405 | exit 0 |
| 406 | ;; |
| 407 | INFO/SCRIPTS/PRETRANS) |
| 408 | echo -n "#!" >"$2" |
| 409 | mcrpmfs_getRawOneTag "%{RPMTAG_PRETRANSPROG}\n" >>"$2" |
| 410 | mcrpmfs_getRawOneTag "%{RPMTAG_PRETRANS}\n" >>"$2" |
| 411 | exit 0 |
| 412 | ;; |
| 413 | INFO/SCRIPTS/POSTTRANS) |
| 414 | echo -n "#!" >"$2" |
| 415 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTTRANSPROG}\n" >>"$2" |
| 416 | mcrpmfs_getRawOneTag "%{RPMTAG_POSTTRANS}\n" >>"$2" |
| 417 | exit 0 |
| 418 | ;; |
| 419 | INFO/SCRIPTS/TRIGGERSCRIPTS) |
| 420 | echo -n "#!" >"$2" |
| 421 | mcrpmfs_getRawOneTag "%{TRIGGERSCRIPTPROG}\n" >>"$2" |
| 422 | $RPM -qp --triggers "$rpm_filename" >>"$2" |
| 423 | exit 0 |
| 424 | ;; |
| 425 | INFO/SCRIPTS/VERIFYSCRIPT) |
| 426 | echo -n "#!" >"$2" |
| 427 | mcrpmfs_getRawOneTag "%{VERIFYSCRIPTPROG}\n" >>"$2" |
| 428 | mcrpmfs_getRawOneTag "%{VERIFYSCRIPT}\n" >>"$2" |
| 429 | exit 0 |
| 430 | ;; |
| 431 | *) |
| 432 | ;; |