[packages/adapter: 433/631] - no longer standalone

glen glen at pld-linux.org
Mon Sep 12 20:10:44 CEST 2016


commit b716f6762266f9a7745c9ce90c2cb2fab05547f3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Oct 27 22:35:06 2008 +0000

    - no longer standalone
    
    Changed files:
        adapter.awk -> 1.413

 adapter.awk | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index c57cfd0..2db15a5 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1745,14 +1745,20 @@ function replace_php_virtual_deps()
 # Load rpm macros
 # you should update the list also in adapter when making changes here
 function import_rpm_macros() {
+	# File with rpm groups
+	sourcedir = ENVIRON["_sourcedir"]
+
+	if (!sourcedir) {
+		print "adapter.awk should not not be invoked directly, but via adapter script" > "/dev/stderr"
+		do_not_touch_anything = 1
+		exit(1);
+	}
+
 	# get cvsaddress for changelog section
 	# using rpm macros as too lazy to add ~/.adapterrc parsing support.
 	_cvsmaildomain = ENVIRON["_cvsmaildomain"]
 	_cvsmailfeedback = ENVIRON["_cvsmailfeedback"]
 
-	# File with rpm groups
-	sourcedir = ENVIRON["_sourcedir"]
-
 	prefix = ENVIRON["_prefix"]
 	bindir = ENVIRON["_bindir"]
 	sbindir = ENVIRON["_sbindir"]
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list