rpm.ts - Flags and VSFlags


A transaction set can be modified or setup with various flags. There are two main types of flags ts.Flagsrelates to general transaction flags such as rpm.RPM_TRANS_FLAG_TEST and rpm.RPM_TRANS_FLAG_NOSCRIPTS. Transaction flags are set using ts.setFlags(flag). setFlags returns the flags prior to changing should you wish to restore them later.


ts.VSFlags are flags relating to verification of signatures. Flags are bitmasks and you can combine by binary or, e.g. myflags = rpm.RPMVSF_NORSA | rpm.RPMVSF_NODSA. Verification flags are set using ts.setVSFlags(vsflags), or by passing them as the second argument to rpm.ts.