Page MenuHomeFreeBSD

nanobsd: guard triggers cleanup find against missing dir
AbandonedPublic

Authored by senguptaangshuman17_gmail.com on Thu, Aug 27, 9:38 PM.
Tags
None
Referenced Files
F171073015: D59236.id185283.diff
Tue, Sep 8, 1:15 PM
Unknown Object (File)
Mon, Sep 7, 1:55 PM
Unknown Object (File)
Sun, Sep 6, 9:41 PM
Unknown Object (File)
Sun, Sep 6, 4:12 PM
Unknown Object (File)
Sat, Sep 5, 3:32 PM
Unknown Object (File)
Sat, Sep 5, 12:14 PM
Unknown Object (File)
Sat, Sep 5, 8:12 AM
Unknown Object (File)
Sat, Sep 5, 6:28 AM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

find(1) errors on a nonexistent path, and under set -e that
kills the build. var/db/pkg/triggers only exists if pkg(8)
actually created it during install, so check -d before find
in _xxx_tgt_pkg_triggers instead of assuming it's there.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76273
Build 73156: arc lint + arc unit