https://bugzilla.redhat.com/show_bug.cgi?id=2353415



--- Comment #29 from Steve <[email protected]> ---
Phil,

Thanks for the feedback and encouragement!

Just a clarification on your change suggestion, my understating is that the
%dir command is just for if your package needs to claim ownership of an *empty*
directory. For example a package that has several optional subpackages that
could each populate that directory.

If you want to claim ownership of a directory *and* populate it at the same
time then just listing the directory itself (optionally ending with the
trailing forward slash (?, either-or seems to work)) is sufficient, as in:
'%{_datadir}/stroke/' or '%{_datadir}/stroke'. %files sees the files that need
to go into and realises it's a directory and claims ownership at the same time.

On the other hand '%{_datadir}/stroke/*' does generate the following in
fedora-review:

[ ]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/stroke
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/stroke

Anyways, I really scratched my head over this and had to dig around in the
documentation to figure this much out, so I may not understand it properly and
would welcome your correction

Cheers,

Steve


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2353415

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202353415%23c29

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to