scripts/package-metadata.pl: parse and validate field Require-User
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 13 Jun 2017 09:03:38 +0000 (17:03 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Sun, 18 Jun 2017 02:39:35 +0000 (10:39 +0800)
commit80d9ec5d3dbc1e393f377ede51e16d5c267475bd
treebc5f4a9581c170254c59d61eaeafad7ef31808ef
parentf334a0cdb8498dfd2bbb780245e4e0ed0d103ece
scripts/package-metadata.pl: parse and validate field Require-User

The script will now detect uid/gid collision and can generate a table of
current allocation

    ./scripts/package-metadata.pl usergroup tmp/.packageinfo \
| sort -k 1,1r -k 3,3n \
| column -t

This should ensure that no collision will happen for each single build

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
scripts/metadata.pm
scripts/package-metadata.pl