summaryrefslogtreecommitdiff
path: root/lib/rpmfiles.h
diff options
context:
space:
mode:
authorPavlina Moravcova Varekova <pmoravco@redhat.com>2017-04-19 18:16:18 +0200
committerPavlina Moravcova Varekova <pmoravco@redhat.com>2017-04-19 18:16:18 +0200
commitb9178e43c355e1b60280937737d96a50f7597c1e (patch)
treebeca606fee93cba1ae92e60d2a9b324885211a49 /lib/rpmfiles.h
parenta239ddefa90575ce80ed4436beb4005a97e32644 (diff)
downloadrpm-b9178e43c355e1b60280937737d96a50f7597c1e.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.h2
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;