Re: [Guidelines Change] Changes to the Packaging Guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Toshio Kuratomi wrote:
> Directory and file interaction is a hard problem. There's no right thing
> to do in this case.  The many possible things we could do all have one
> drawback or another in certain cases.

The right thing is clear: If all the files inside the directory are owned by 
packages about to be removed in the transaction, just rm -rf the directory 
(or rather the equivalent in C code), otherwise rename it with a suffix 
(.rpmsave, if necessary .rpmsave0, .rpmsave1, … , .rpmsave10, …) and only 
delete the files owned by packages about to be removed in the transaction.

With subdirectories, you do the same recursively: First you process the 
subdirectory (from the deepest level up), then once it is processed, it can 
be treated like a file.

        Kevin Kofler

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux