diff options
author | Pavlina Moravcova Varekova <pmoravco@redhat.com> | 2017-04-19 18:16:18 +0200 |
---|---|---|
committer | Pavlina Moravcova Varekova <pmoravco@redhat.com> | 2017-04-19 18:16:18 +0200 |
commit | b9178e43c355e1b60280937737d96a50f7597c1e (patch) | |
tree | beca606fee93cba1ae92e60d2a9b324885211a49 /lib/rpmfiles.h | |
parent | a239ddefa90575ce80ed4436beb4005a97e32644 (diff) | |
download | rpm-pavlinas_p122.tar.gz |
Add %mutable and %noupdate update policies (#152)pavlinas_p122
%mutable
- is defined for files and links. It means update until modified.
In more details:
- if a file/link is the same as in new package then touch it,
- if a file/link is the same as in old package then upgrade it as "normal" file/link,
- else do nothing.
%noupdate
- is defined for all file types used internally by rpm. It is for cases, where packager wants just the initial content, never to be touched by rpm again.
In more details:
- if the file does not exist, then create it,
- if the file exists, then do nothing.
Diffstat (limited to 'lib/rpmfiles.h')
-rw-r--r-- | lib/rpmfiles.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rpmfiles.h b/lib/rpmfiles.h index 4dba88fc4..8e92d0c4f 100644 --- a/lib/rpmfiles.h +++ b/lib/rpmfiles.h @@ -60,6 +60,8 @@ enum rpmfileAttrs_e { RPMFILE_README = (1 << 8), /*!< from %%readme */ /* bits 9-10 unused */ RPMFILE_PUBKEY = (1 << 11), /*!< from %%pubkey */ + RPMFILE_MUTABLE = (1 << 12), /*!< from %%mutable or %updatepolicy(mutable) */ + RPMFILE_NOUPDATE = (1 << 13), /*!< from %%noupdate or %updatepolicy(noupdate) */ }; typedef rpmFlags rpmfileAttrs; |