[packages/adapter: 57/631] - fixed problem with spaces in group names

glen glen at pld-linux.org
Mon Sep 12 19:39:14 CEST 2016


commit d801c57a04119e7a9efacffa6968bef8a8adec81
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date:   Fri May 19 20:07:12 2000 +0000

    - fixed problem with spaces in group names
    
    Changed files:
        adapter.awk -> 1.57

 adapter.awk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 448ea9f..f639e01 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -240,10 +240,11 @@ preamble == 1 {
 		format_preamble()
 		print $0
 		
-		translate_group($2)
+		sub($1 "[ \t]*","")
+		translate_group($0)
 		close(groups_file)
 		
-		if ($2 ~ /^X11/ && x11 == 0)	# Is it X11 application?
+		if ($0 ~ /^X11/ && x11 == 0)	# Is it X11 application?
 		       x11 = 1
 
 		next	# Line is already formatted and printed
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list