CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
|
Public Member Functions | |
Pkgrepo (const std::string &fileName) | |
std::set< std::string > | getListOutOfDate () |
std::string | getPortDir (const std::string &portName) |
std::string | getBasePortName (const std::string &portName) |
std::string | getBasePackageName (const std::string &packageName) |
std::string | getBasePackageVersion (const std::string &packageName) |
std::string | getPortVersion (const std::string &portName) |
int | getBasePackageRelease (const std::string &packageName) |
int | getPortRelease (const std::string &portName) |
bool | checkPortExist (const std::string &portName) |
std::set< std::string > | getListOfPackagesFromCollection (const std::string &collectionName) |
time_t | getBinaryBuildTime (const std::string &portName) |
std::set< std::string > | getBinaryPackageList () |
std::set< Pkg * > | getListOfPackages () |
std::vector< RepoInfo > | getRepoInfo () |
unsigned int | getPortsList () |
bool | getBinaryPackageInfo (const std::string &packageName) |
bool | getPortInfo (const std::string &portName) |
Pkgrepo (const std::string &fileName) | |
std::set< std::string > | getListOutOfDate () |
std::string | getPortDir (const std::string &portName) |
std::string | getBasePortName (const std::string &portName) |
std::string | getBasePackageName (const std::string &packageName) |
std::string | getBasePackageVersion (const std::string &packageName) |
std::string | getPortVersion (const std::string &portName) |
int | getBasePackageRelease (const std::string &packageName) |
int | getPortRelease (const std::string &portName) |
bool | checkPortExist (const std::string &portName) |
std::set< std::string > | getListOfPackagesFromCollection (const std::string &collectionName) |
time_t | getBinaryBuildTime (const std::string &portName) |
std::set< std::string > | getBinaryPackageList () |
std::set< Pkg * > | getListOfPackages () |
std::vector< RepoInfo > | getRepoInfo () |
unsigned int | getPortsList () |
bool | getBinaryPackageInfo (const std::string &packageName) |
bool | getPortInfo (const std::string &portName) |
Static Public Member Functions | |
static int | parseConfig (const char *fileName, Config &config) |
static int | parseConfig (const char *fileName, Config &config) |
Protected Member Functions | |
int | parseConfig (const char *fileName) |
void | parsePkgRepoCollectionFile () |
void | parseCollectionDirectory () |
void | parseCurrentPackagePkgRepoFile () |
void | parsePackagePkgfileFile () |
int | parseConfig (const char *fileName) |
void | parsePkgRepoCollectionFile () |
void | parseCollectionDirectory () |
void | parseCurrentPackagePkgRepoFile () |
void | parsePackagePkgfileFile () |
Protected Attributes | |
bool | m_parsePkgRepoCollectionFile |
bool | m_parseCollectionDirectory |
bool | m_parsePackagePkgfileFile |
std::vector< PortsDirectory >::iterator | m_PortsDirectory_i |
std::vector< BasePackageInfo >::iterator | m_BasePackageInfo_i |
std::vector< PortFilesList >::iterator | m_PortFilesList_i |
std::vector< PortFilesList > | m_portFilesList |
std::string | m_packageFileName |
std::string | m_packageFileNameSignature |
std::string | m_configFileName |
Config | m_config |
std::vector< PortsDirectory > | m_portsDirectoryList |
bool Pkgrepo::checkPortExist | ( | const std::string & | portName | ) |
return true if port name exist
bool Pkgrepo::checkPortExist | ( | const std::string & | portName | ) |
return true if port name exist
std::string Pkgrepo::getBasePackageName | ( | const std::string & | packageName | ) |
return the basename of the packagename
std::string Pkgrepo::getBasePackageName | ( | const std::string & | packageName | ) |
return the basename of the packagename
int Pkgrepo::getBasePackageRelease | ( | const std::string & | packageName | ) |
return the release of the packagename
int Pkgrepo::getBasePackageRelease | ( | const std::string & | packageName | ) |
return the release of the packagename
std::string Pkgrepo::getBasePackageVersion | ( | const std::string & | packageName | ) |
return the version of the packagename
std::string Pkgrepo::getBasePackageVersion | ( | const std::string & | packageName | ) |
return the version of the packagename
std::string Pkgrepo::getBasePortName | ( | const std::string & | portName | ) |
return the basename of the portname
std::string Pkgrepo::getBasePortName | ( | const std::string & | portName | ) |
return the basename of the portname
time_t Pkgrepo::getBinaryBuildTime | ( | const std::string & | portName | ) |
return the build time of the binary
time_t Pkgrepo::getBinaryBuildTime | ( | const std::string & | portName | ) |
return the build time of the binary
std::set<std::string> Pkgrepo::getBinaryPackageList | ( | ) |
return the list of available binaries packages
set< string > Pkgrepo::getBinaryPackageList | ( | ) |
return the list of available binaries packages
std::set<std::string> Pkgrepo::getListOfPackagesFromCollection | ( | const std::string & | collectionName | ) |
retun list of packages of the collection
std::set<std::string> Pkgrepo::getListOfPackagesFromCollection | ( | const std::string & | collectionName | ) |
retun list of packages of the collection
std::set<std::string> Pkgrepo::getListOutOfDate | ( | ) |
return a list of ports which has to be compiled OR has to be updated
Depends on: parsePkgRepoCollectionFile
Populate: nothing
set< string > Pkgrepo::getListOutOfDate | ( | ) |
return a list of ports which has to be compiled OR has to be updated
Depends on: parsePkgRepoCollectionFile
Populate: nothing
std::string Pkgrepo::getPortDir | ( | const std::string & | portName | ) |
return the folder of the port name
string Pkgrepo::getPortDir | ( | const std::string & | portName | ) |
return the folder of the port name
int Pkgrepo::getPortRelease | ( | const std::string & | portName | ) |
return the release of the port name
int Pkgrepo::getPortRelease | ( | const std::string & | portName | ) |
return the release of the port name
unsigned int Pkgrepo::getPortsList | ( | ) |
printout the list of available ports which are compiled return a list of name version
unsigned int Pkgrepo::getPortsList | ( | ) |
printout the list of available ports which are compiled return a list of name version
std::string Pkgrepo::getPortVersion | ( | const std::string & | portName | ) |
return the version of the port name
std::string Pkgrepo::getPortVersion | ( | const std::string & | portName | ) |
return the version of the port name
|
protected |
parse the directory directly based on what we have locally. This method is used in the case of synchronisation with the mirror is NOT possible. If they are no directories, they will be nothing add
Depends on: m_config.dirUrl
populate: m_portsDirectoryList ( Dir, BasePackageInfo->basePackageName only )
|
protected |
parse the directory directly based on what we have locally. This method is used in the case of synchronisation with the mirror is NOT possible. If they are no directories, they will be nothing add
Depends on: m_config.dirUrl
populate: m_portsDirectoryList ( Dir, BasePackageInfo->basePackageName only )
|
protected |
parse the config file
|
protected |
parse the config file
|
protected |
parse the ".PKGREPO" file of a port directory if it found a first line with the date of construction and the extension of the archive then it populate the list of packages
Depends on: parsePkgRepoCollectionFile
Populate: m_portFilesList (md5SUM.name,arch)
|
protected |
parse the ".PKGREPO" file of a port directory if it found a first line with the date of construction and the extension of the archive then it populate the list of packages
Depends on: parsePkgRepoCollectionFile
Populate: m_portFilesList (md5SUM.name,arch)
|
protected |
parse the "Pkgfile" file for each basePackage add the version of the port found in the Pkgfile
|
protected |
parse the "Pkgfile" file for each basePackage add the version of the port found in the Pkgfile
|
protected |
parse the .PKGREPO file which belong to the collection found in the configuration file cards.conf. It populate the the m_packageList.basePackageName part by looking the downloaded .PKGREPO file of each activate collection
Depends on: m_config.dirUrl
populate: m_portsDirectoryList (Dir, Url, BasePackageInfo for each possible port found in Dir) with the contents of the collection .PKGREPO file
|
protected |
parse the .PKGREPO file which belong to the collection found in the configuration file cards.conf. It populate the the m_packageList.basePackageName part by looking the downloaded .PKGREPO file of each activate collection
Depends on: m_config.dirUrl
populate: m_portsDirectoryList (Dir, Url, BasePackageInfo for each possible port found in Dir) with the contents of the collection .PKGREPO file