src/rpmfunctions.c: replace usage of heraderLoad() removed since rpm 4.19
This commit is contained in:
parent
d820b6787f
commit
b357f9c075
@ -85,7 +85,7 @@ unsigned int checkVersionWithFlags(const char* cmp1, uint_32 flags, const char*
|
|||||||
/*
|
/*
|
||||||
* get header from a file descriptor of a YUM compressed header file */
|
* get header from a file descriptor of a YUM compressed header file */
|
||||||
int
|
int
|
||||||
getHeader(rpmts* ts, char *headerFile, Header * h)
|
getHeader(rpmts* ts, char *headerFile, Header *h)
|
||||||
{
|
{
|
||||||
char buffer[HEADERS_BUFFER_SIZE];
|
char buffer[HEADERS_BUFFER_SIZE];
|
||||||
int len;
|
int len;
|
||||||
@ -107,7 +107,7 @@ getHeader(rpmts* ts, char *headerFile, Header * h)
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
*h = headerLoad(buffer);
|
*h = headerImport(buffer, sizeof(Header), 0);
|
||||||
} else {
|
} else {
|
||||||
FD_t fd;
|
FD_t fd;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user