Skip to content

Commit 68ce446

Browse files
authored
Merge pull request aurutils#1229 from aurutils/graph-pacini-section
graph: detect sections on keywords
2 parents 70a90ff + 2543e22 commit 68ce446

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/util/aur-graph

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ BEGIN {
6565

6666
$1 == "pkgbase" {
6767
pkgbase = $3
68-
6968
pkgver = ""
69+
70+
# SRCINFO(5), "Section headers"
7071
in_split_pkg = 0
7172
delete(arch)
7273

@@ -107,11 +108,11 @@ index($1, "optdepends") == 1 && !in_split_pkg {
107108
}
108109
}
109110

110-
NF == 0 {
111-
in_split_pkg = 1
112-
}
113111

114112
$1 == "pkgname" {
113+
# SRCINFO(5), "Section headers"
114+
in_split_pkg = 1
115+
115116
pkg_map[$3] = pkgbase # node
116117
ver_map[$3] = pkgver # weight
117118
}

0 commit comments

Comments
 (0)