FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
pkgagent header More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <libgen.h>
#include <time.h>
#include <sys/wait.h>
#include "rpm/rpmlib.h"
#include "rpm/rpmts.h"
#include "rpm/rpmlog.h"
#include "rpm/rpmmacro.h"
#include <libfossology.h>
Go to the source code of this file.
Classes | |
struct | rpmpkginfo |
Holds meta info of rpm packages. More... | |
struct | debpkginfo |
Holds meta info of Debian packages. More... | |
Macros | |
#define | MAXCMD 5000 |
#define | MAXLENGTH 256 |
Functions | |
int | ProcessUpload (long upload_pk) |
Get all pfile need to processed use upload_pk. More... | |
int | GetMetadata (char *pkg, struct rpmpkginfo *pi) |
Get RPM package info. More... | |
int | RecordMetadataRPM (struct rpmpkginfo *pi) |
Store rpm package info into database. More... | |
int | GetMetadataDebBinary (long upload_pk, struct debpkginfo *pi) |
Get debian binary package info. More... | |
int | RecordMetadataDEB (struct debpkginfo *pi) |
Store debian package info into database. More... | |
int | GetMetadataDebSource (char *repFile, struct debpkginfo *pi) |
Get debian source package info from .dsc file. More... | |
void | Usage (char *Name) |
Say how to run this program. More... | |
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. More... | |
Variables | |
int | Verbose |
Verbose level. More... | |
PGconn * | db_conn |
the connection to Database More... | |
pkgagent header
Definition in file pkgagent.h.
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.
[in] | Sin | String to parse |
[out] | Field | Field string |
[in] | FieldMax | Field capacity |
[out] | Value | Value string |
[in] | ValueMax | Value capacity |
[in] | Separator | Separator to use |
Definition at line 101 of file pkgagent.c.
int GetMetadata | ( | char * | pkg, |
struct rpmpkginfo * | pi | ||
) |
Get RPM package info.
pkg | Path of repo pfile | |
[out] | pi | rpmpkginfo global pointer |
Definition at line 505 of file pkgagent.c.
int GetMetadataDebBinary | ( | long | upload_pk, |
struct debpkginfo * | pi | ||
) |
Get debian binary package info.
upload_pk | the upload_pk |
pi | the global pointor of debpkginfo |
Definition at line 670 of file pkgagent.c.
int GetMetadataDebSource | ( | char * | repFile, |
struct debpkginfo * | pi | ||
) |
Get debian source package info from .dsc file.
repFile | the pfile path name | |
[out] | pi | the global pointor of debpkginfo |
Definition at line 892 of file pkgagent.c.
int ProcessUpload | ( | long | upload_pk | ) |
Get all pfile need to processed use upload_pk.
upload_pk | The upload_pk send from scheduler |
Definition at line 162 of file pkgagent.c.
int RecordMetadataDEB | ( | struct debpkginfo * | pi | ) |
Store debian package info into database.
pi | the global pointor of debpkginfo |
Definition at line 818 of file pkgagent.c.
int RecordMetadataRPM | ( | struct rpmpkginfo * | pi | ) |
Store rpm package info into database.
pi |
Definition at line 563 of file pkgagent.c.
void Usage | ( | char * | Name | ) |
Say how to run this program.
Print usage of bucket agent
Name | Absolute path of agent |
Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.
Say how to run this program.
Name | - the name of the executable, usually it is mimetype |
Say how to run this program.
Name | Path to nomos binary |
Print usage of bucket agent
Name | Absolute path of agent |
Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.
Say how to run this program.
Name | - the name of the executable, usually it is mimetype |
Say how to run this program.
Name | Path to nomos binary |
Print usage of bucket agent
Name | Absolute path of agent |
Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.
Say how to run this program.
Name | - the name of the executable, usually it is mimetype |
Say how to run this program.
Name | Path to nomos binary |
Say how to run this program.
Say how to run this program.
Name | Path of the binary |
Print usage of bucket agent
Name | Absolute path of agent |
Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.
Say how to run this program.
Name | - the name of the executable, usually it is mimetype |
Say how to run this program.
Name | Path to nomos binary |
Say how to run this program.
Say how to run this program.
Name | Path of the binary |
Say how to run this program.
Filename | (executable argv[0] name) |
Say how to run this program.
Name | The name of the executable, usually it is wget_agent |
Definition at line 561 of file adj2nest.c.
|
extern |