Skip to content

Commit 972a308

Browse files
harshimogalapallijfvogel
authored andcommitted
uek-rpm: Simplify the unzipsed macro in the spec file.
%define unzipsed -e 's/\.ko.xz$/\.ko/' that could be just .ko instead of \.ko for the replacement. $ echo foobar.ko.xz | sed -e 's/\.ko.xz$/.ko/' foobar.ko Orabug: 37453041 Suggested-by: Vegard Nossum <[email protected]> Signed-off-by: Harshit Mogalapalli <[email protected]> Reviewed-by: Jack Vogel <[email protected]>
1 parent a82ec38 commit 972a308

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

uek-rpm/ol10/kernel-uek.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ gcc --version
951951

952952
%if %{with_compression}
953953
%define compression_suffix .xz
954-
%define unzipsed -e 's/\.ko.xz$/\.ko/'
954+
%define unzipsed -e 's/\.ko.xz$/.ko/'
955955
%endif
956956

957957
cp_vmlinux()

uek-rpm/ol9/kernel-uek.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ gcc --version
961961

962962
%if %{with_compression}
963963
%define compression_suffix .xz
964-
%define unzipsed -e 's/\.ko.xz$/\.ko/'
964+
%define unzipsed -e 's/\.ko.xz$/.ko/'
965965
%endif
966966

967967
cp_vmlinux()

0 commit comments

Comments
 (0)