srpm-utils: Recognize /usr/bin/mkdir as well

This commit allows the code in the srpm-utils script to recognize
/usr/bin/mkdir (as an alias for mkdir).

In summary, some SRPMs in CentOS 8 such as iptables make use of the
%{__mkdir} macro, which expands to /usr/bin/mkdir, which in turn was not
recognized by srpm-utils.

Verification: build-pkgs --edit now works with a version of iptables
imported from CentOS 8.

Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
Closes-Bug: #1948968
Change-Id: I12d20797db91fecdac409b0535632ac97bd6ad47
This commit is contained in:
M. Vefa Bicakci 2021-10-27 12:45:37 -04:00
parent 806be6adf6
commit c73eb33d41

View File

@ -808,6 +808,7 @@ raw_create_tarballs_extract_script () {
echo "$LINE" >> $EXTRACT_SCRIPT
fi
;;
"/usr/bin/mkdir "*|\
"mkdir "*)
echo "$LINE -p" >> $EXTRACT_SCRIPT
;;
@ -922,6 +923,7 @@ raw_create_tarballs_extract_script () {
echo "$LINE" >> $EXTRACT_SCRIPT
fi
;;
"/usr/bin/mkdir "*|\
"mkdir "*)
echo "$LINE -p" >> $EXTRACT_SCRIPT
;;
@ -1061,6 +1063,7 @@ raw_create_tarballs_extract_script_post_metapatch () {
"pushd "*)
echo "$LINE" >> $EXTRACT_SCRIPT
;;
"/usr/bin/mkdir "*|\
"mkdir "*)
echo "$LINE -p" >> $EXTRACT_SCRIPT
;;
@ -1126,6 +1129,7 @@ raw_create_tarballs_extract_script_post_metapatch () {
"pushd "*)
echo $LINE >> $EXTRACT_SCRIPT
;;
"/usr/bin/mkdir "*|\
"mkdir "*)
echo "$LINE -p" >> $EXTRACT_SCRIPT
;;