[packages/adapter: 73/631] - update rpm.groups even when it exists...

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


commit 2a14d133ee350c3158df33c22535cf0632565a79
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date:   Mon Sep 11 12:48:32 2000 +0000

    - update rpm.groups even when it exists...
    
    Changed files:
        adapter.awk -> 1.73

 adapter.awk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 23f4d7e..fc2fa23 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -20,11 +20,7 @@ BEGIN {
 	# File with rpm groups
 	"rpm --eval %_sourcedir" | getline groups_file
 	groups_file = groups_file "/rpm.groups"
-	if (!getline < groups_file) {
-		system("cd `rpm --eval %_sourcedir`; cvs up rpm.groups")
-	} else {
-		close(groups_file)
-	}
+	system("cd `rpm --eval %_sourcedir`; cvs up rpm.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