Richterrettich / rpm-rs

A pure rust library for building and parsing RPM's
Other
39 stars 18 forks source link

feat: Add enum for FileMode #43

Closed Richterrettich closed 2 years ago

Richterrettich commented 2 years ago

This API help users to correctly set file modes including file types. Currently only the types dir (0o04_0000) and regular (0o10_0000) are supported. It is still possible to create RPM packages by specifying the raw file mode. This is mainly for backwards compatibility.

Fixes #31

Richterrettich commented 2 years ago

@cat-in-136 would you like to take a look if this solves your problem?

Richterrettich commented 2 years ago

I will merge this for now.

cat-in-136 commented 2 years ago

@Richterrettich it works fine. Thank you for great enhancement!