about summary refs log tree commit diff
path: root/xetcchanges
diff options
context:
space:
mode:
Diffstat (limited to 'xetcchanges')
-rwxr-xr-xxetcchanges3
1 files changed, 2 insertions, 1 deletions
diff --git a/xetcchanges b/xetcchanges
index bf9899b..90eeb94 100755
--- a/xetcchanges
+++ b/xetcchanges
@@ -5,7 +5,8 @@ xbps-query -o ${1:-"/etc/*"} |
 	awk 'function q(a) { gsub("\\47", "\47\\\47\47", a); return "\47"a"\47" }
 	{
 		sub(" \\([^)]*\\)$", "")
-		sub(" -> .*$", "")
+		if (sub(" -> .*$", ""))
+			next
 		i = index($0, ": ")
 		pkg = substr($0, 1, i-1)
 		file = substr($0, i+2)