23 #include "rpm/rpmlib.h"
24 #include "rpm/rpmts.h"
25 #include "rpm/rpmlog.h"
26 #include "rpm/rpmmacro.h"
101 void Usage(
char *Name);
103 char *
GetFieldValue(
char *Sin,
char *Field,
int FieldMax,
char *Value,
int ValueMax,
char Separator);
The main FOSSology C library.
void Usage(char *Name)
Say how to run this program.
char * GetFieldValue(char *Sin, char *Field, int FieldMax, char *Value, int ValueMax, char Separator)
Given a string that contains field='value' pairs, save the items.
int GetMetadata(char *pkg, struct rpmpkginfo *pi)
Get RPM package info.
int GetMetadataDebSource(char *repFile, struct debpkginfo *pi)
Get debian source package info from .dsc file.
int ProcessUpload(long upload_pk)
Get all pfile need to processed use upload_pk.
PGconn * db_conn
the connection to Database
int RecordMetadataDEB(struct debpkginfo *pi)
Store debian package info into database.
int Verbose
Verbose level.
int RecordMetadataRPM(struct rpmpkginfo *pi)
Store rpm package info into database.
int GetMetadataDebBinary(long upload_pk, struct debpkginfo *pi)
Get debian binary package info.
Holds meta info of Debian packages.
char section[MAXCMD]
Package section.
char priority[MAXCMD]
Package priority.
char standardsVersion[MAXCMD]
Package standards version.
long pFileFk
Package pfile in FOSSology.
char ** depends
Package dependency list.
char summary[MAXCMD]
Package summary.
char pFile[MAXCMD]
Package pfile hash.
char version[MAXCMD]
Package version.
char format[MAXCMD]
Package format.
char uploaders[MAXCMD]
Package contributors.
char maintainer[MAXCMD]
Package maintainer.
int installedSize
Size of package after install.
char pkgArch[MAXCMD]
Package architecture.
char description[MAXCMD]
Package description.
int dep_size
Package dependency list size.
char source[MAXCMD]
Package source.
char pkgName[MAXCMD]
Package name.
char homepage[MAXCMD]
Package link.
Holds meta info of rpm packages.
char buildDate[128]
Package build date.
char pFile[MAXCMD]
Package pfile hash.
char group[128]
Package group.
char version[64]
Package version.
char summary[MAXCMD]
Package summary.
char pkgName[256]
RPM package name.
char description[MAXCMD]
Package description.
char rpmFilename[256]
RPM file name.
char pkgArch[64]
Package architecture.
char sourceRPM[256]
Package source.
int req_size
Package dependency list size.
char pkgAlias[256]
Package alias.
char url[256]
Package link.
long pFileFk
Package pfile in FOSSology.
char release[64]
Package release.
char packager[1024]
Packager.
char ** requires
Package dependency list.
char vendor[128]
Package vendor.