rpmte.c rpmte_internal.h rpmts.c \
rpmvercmp.c signature.c signature.h transaction.c \
verify.c rpmlock.c rpmlock.h misc.h \
- legacy.c legacy.h merge.c
+ legacy.c merge.c
if SQLITE3
librpm_la_SOURCES += backend/sqlite.c
endif
#include <rpm/rpmfi.h>
#include <rpm/rpmds.h>
-#include "lib/legacy.h"
-
#include "debug.h"
-int _noDirTokens = 0;
-
static int dncmp(const void * a, const void * b)
{
const char *const * first = a;
return strcmp(*first, *second);
}
-void compressFilelist(Header h)
+static void compressFilelist(Header h)
{
struct rpmtd_s fileNames;
char ** dirNames;
xx = headerDel(h, RPMTAG_OLDFILENAMES);
}
-void expandFilelist(Header h)
+static void expandFilelist(Header h)
{
struct rpmtd_s filenames;
free(pEVR);
}
-void legacyRetrofit(Header h)
+static void legacyRetrofit(Header h)
{
struct rpmtd_s dprefix;
+++ /dev/null
-#ifndef H_LEGACY
-#define H_LEGACY
-
-/**
- * \file lib/legacy.h
- *
- */
-
-/**
- */
-extern int _noDirTokens;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Convert absolute path tag to (dirname,basename,dirindex) tags.
- * @param h header
- */
-void compressFilelist(Header h);
-
-/**
- * Convert (dirname,basename,dirindex) tags to absolute path tag.
- * @param h header
- */
-void expandFilelist(Header h);
-
-/**
- * Do all necessary retrofits for a package header.
- * @param h header
- */
-void legacyRetrofit(Header h);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* H_LEGACY */
#include "lib/signature.h"
#include "lib/rpmlead.h"
-#include "lib/legacy.h"
#include "debug.h"
+int _noDirTokens = 0;
+
static unsigned char const lead_magic[] = {
RPMLEAD_MAGIC0, RPMLEAD_MAGIC1, RPMLEAD_MAGIC2, RPMLEAD_MAGIC3
};