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/rpmfi_internal.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/rpmfi_internal.h')
-rw-r--r-- | lib/rpmfi_internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/rpmfi_internal.h b/lib/rpmfi_internal.h index cb3284c0f..804333f2d 100644 --- a/lib/rpmfi_internal.h +++ b/lib/rpmfi_internal.h @@ -73,6 +73,31 @@ rpmFileAction rpmfilesDecideFate(rpmfiles ofi, int oix, rpmfiles nfi, int nix, int skipMissing); + +/** \ingroup rpmfi + * Return action which should be done with the %mutable file + * @param new file info set + * @param new file index + * @param old file info set + * @param old file index + * @return action name + */ +RPM_GNUC_INTERNAL +rpmFileAction rpmfilesSetMutableAction(rpmfiles ofi, int oix, + rpmfiles nfi, int nix); + +/** \ingroup rpmfi + * Return action which should be done with the %noupdate file + * @param new file info set + * @param new file index + * @param old file info set + * @param old file index + * @return action name + */ +RPM_GNUC_INTERNAL +rpmFileAction rpmfilesSetNoupdateAction(rpmfiles ofi, int oix, + rpmfiles nfi, int nix); + RPM_GNUC_INTERNAL int rpmfilesConfigConflict(rpmfiles fi, int ix); |