[packages/adapter: 12/631] - fixed fixing one regexp (it was buggy)

glen glen at pld-linux.org
Mon Sep 12 19:35:28 CEST 2016


commit d3ebb1198e3855ce04475a221a5132c0c1ba493b
Author: kura <kura at pld-linux.org>
Date:   Fri Dec 17 08:01:59 1999 +0000

    - fixed fixing one regexp (it was buggy)
    
    Changed files:
        adapter.awk -> 1.12

 adapter.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 92a086a..a0cf90a 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -109,8 +109,8 @@ bof == 1 {
 	
 	# 'gzip -9nf' for compressing
 	if ($1 ~ /gzip|bzip2/) {
-		if ($2 ~ /^-[[:alnum:]]+/)
-			sub(/-[[:alnum:]]+ /, "", $0);
+		if ($2 ~ /^-/)
+			sub(/-[A-Za-z0-9]+ /, "", $0);
 		sub($1, "gzip -9nf");
 	}
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list