> Is it possible to ghost a regex pattern while packaging files?

Did you actually try it?

> Is it possible to own a directory fully in rpm, upon removal; the directory 
> should get removed without bothering about the content within.
> ...
> %ghost %dir %{python3_sitelib}/cloudinit/__pycache__/

Yes, it's very common. Just drop the %dir because that specifically tells rpm 
that this entry is ONLY about the directory node itself, and not the contents.

As for your use-case for wanting to avoid bloating packages with redundant .pyc 
files: you might want to research the background as to why they are included in 
packages. There are multiple reasons for it, and none of them is "for fun".

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3480#discussioncomment-11770094
You are receiving this because you are subscribed to this thread.

Message ID: 
<rpm-software-management/rpm/repo-discussions/3480/comments/11770...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to