[packages/adapter: 42/631] - Replaced hardcoded location of "groups" file ("~/rpm") with rpm macro "%_topdir".

glen glen at pld-linux.org
Mon Sep 12 19:37:59 CEST 2016


commit ed86212fe8b3c6379744ee97a9e4a869b3c07cba
Author: mkochano <mkochano at pld-linux.org>
Date:   Fri Apr 28 19:21:43 2000 +0000

    - Replaced hardcoded location of "groups" file ("~/rpm") with rpm macro
      "%_topdir".
    
    Changed files:
        adapter.awk -> 1.42

 adapter.awk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 0518cb6..c8e89a0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -17,7 +17,9 @@ BEGIN {
 	bod = 0			# Beggining of %description
 	tw = 75        		# Descriptions width
 
-	groups_file = ENVIRON["HOME"] "/rpm/groups"	# File with rpm groups
+	# File with rpm groups
+	"rpm --eval %_topdir" | getline groups_file
+	groups_file = groups_file "/groups"
 
 	# Temporary file for changelog section
 	changelog_file = ENVIRON["HOME"] "/tmp/adapter.changelog"
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list