cookutils diff modules/deps @ rev 976

modules/pkgdb: ownership isn't transferred, set permissions; lighttpd/index.cgi: color shell documentation files (see compton).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 06 01:08:09 2017 +0300 (2017-10-06)
parents 79b65c3a4e40
children 556429e78e83
line diff
     1.1 --- a/modules/deps	Fri Jul 14 15:58:38 2017 +0300
     1.2 +++ b/modules/deps	Fri Oct 06 01:08:09 2017 +0300
     1.3 @@ -113,7 +113,7 @@
     1.4  		*ld-linux.so*);;
     1.5  		*linux-gate.so*);;
     1.6  		*)
     1.7 -			echo "$pkgs" | awk '
     1.8 +			echo "$pkgs" | awk -vincl="$incl" '
     1.9  			# if both packages exist in list, return the first one only
    1.10  			function s(pkg1, pkg2) {
    1.11  				if (index(" "$0" ", " "pkg1" ") && index(" "$0" ", " " pkg2 " "))
    1.12 @@ -151,7 +151,10 @@
    1.13  				s("xorg-xcb-util-renderutil-dev", "xcb-util-renderutil-dev");
    1.14  				s("eudev-dev", "udev-dev");
    1.15  
    1.16 -				if (! index($0, "glibc-base") &&
    1.17 +				# if called with "--incl": show all deps including glibc-base,
    1.18 +				# gcc-lib-base, glibc-dev and gcc; otherwise hide them
    1.19 +				if (incl == "yes" ||
    1.20 +					! index($0, "glibc-base") &&
    1.21  					! index($0, "gcc-lib-base") &&
    1.22  					! index($0, "glibc-dev") &&
    1.23  					$0 != "gcc")