...but require an exact 1 for nodigest in rpmfiArchiveReadToFile()
- This way we can change the argument into a flag bitfield later on without it being an API change.
This commit is contained in:
parent
5a928ec372
commit
8b06737db1
|
@ -1198,7 +1198,7 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files, FD_t cfd,
|
|||
struct stat * st = &fsm->sb;
|
||||
int saveerrno = errno;
|
||||
int rc = 0;
|
||||
int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST);
|
||||
int nodigest = (rpmtsFlags(ts) & RPMTRANS_FLAG_NOFILEDIGEST) ? 1 : 0;
|
||||
int fc = rpmfiFC(fi);
|
||||
const int * hardlinks;
|
||||
int numHardlinks;
|
||||
|
|
|
@ -265,7 +265,7 @@ size_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
|
|||
* Write content from current file in archive to a file
|
||||
* @param fi file info
|
||||
* @param fd file descriptor of file to write to
|
||||
* @param nodigest ommit checksum check if > 0
|
||||
* @param nodigest omit checksum check if 1
|
||||
* @return > 0 on error
|
||||
*/
|
||||
int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);
|
||||
|
|
Loading…
Reference in New Issue