Add support for .xz compressed patches
This commit is contained in:
		
							parent
							
								
									2b4d1d8379
								
							
						
					
					
						commit
						7cfa6899ff
					
				| @ -509,7 +509,7 @@ ExclusiveOS: Linux | ||||
| # List the packages used during the kernel build | ||||
| # | ||||
| BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar | ||||
| BuildRequires: bzip2, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk | ||||
| BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk | ||||
| BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config | ||||
| BuildRequires: net-tools | ||||
| BuildRequires: xmlto, asciidoc | ||||
| @ -996,7 +996,8 @@ ApplyPatch() | ||||
| %endif | ||||
|   case "$patch" in | ||||
|   *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; | ||||
|   *.gz) gunzip < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; | ||||
|   *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; | ||||
|   *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; | ||||
|   *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;; | ||||
|   esac | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user