55 void Log(
const char *msg);
58 TPackMgr(
const char *dir,
const char *key =
"L0");
72 Int_t Load(
const char *pack,
const char *opts);
83 return (fEnabledPackages &&
86 void Show(
const char *title = 0);
static Int_t FindParPath(TPackMgr *packmgr, const char *pack, TString &par)
Get the full path to PAR, looking also in the global dirs.
static THashList * fgGlobalPackMgrList
Bool_t IsPackageEnabled(const char *pack)
TMD5 * ReadMD5(const char *pack)
Read MD5 checksum of the PAR file from the PROOF-INF/md5.txt file.
The PROOF package manager contains tools to manage packages.
static long int sum(long int i)
void GetEnabledPackages(TString &packlist)
Method to get a semi-colon separated list with the names of the enabled packages. ...
static Bool_t IsEnabled(const char *pack, TPackMgr *packmgr=nullptr)
Check if the package is enabled; priority is given to packmgr, if defined.
virtual ~TPackMgr()
Destroy a TPackMgr instance.
Int_t Unload(const char *pack)
Method to unload a package.
Int_t GetParPath(const char *pack, TString &path)
Method to get the path of the PAR file for package 'pack'.
static TPackMgr * GetPackMgr(const char *pack, TPackMgr *packmgr=nullptr)
Get the package manager having 'pack'; priority is given to packmgr, if defined.
Int_t Clean(const char *pack)
Clean dir for package 'pack' Return -1 in case of error, 0 otherwise.
Int_t GetPackDir(const char *pack, TString &pdir)
Method to get the path of the dir for package 'pack'.
Int_t Load(const char *pack, TList *optls=0)
Method to load a package taking an option list Return -1 on error, 0 otherwise.
TPackMgr(const TPackMgr &)
void Show(const char *title=0)
Show available packages.
Int_t Unpack(const char *pack, TMD5 *sum=0)
Read MD5 checksum of the PAR file from the PROOF-INF/md5.txt file.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Path locking class allowing shared and exclusive locks.
Int_t Install(const char *par, Bool_t rmold=kFALSE)
Install package from par (unpack the file in the directory); par can be an URL for remote retrieval...
TList * GetListOfEnabled() const
Get list of enabled packages Returns a pointer to a TList object, transferring ownership to the calle...
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
This code implements the MD5 message-digest algorithm.
The TNamed class is the base class for all named ROOT classes.
void SetName(const char *name)
Set the name of the TNamed.
void ShowEnabled(const char *title=0)
Show enabled packages.
const char * GetTitle() const
Returns title of object.
TList * GetList() const
Get list of available packages Returns a pointer to a TList object, transferring ownership to the cal...
const char * GetDir() const
Int_t Build(const char *pack, Int_t opt=TPackMgr::kCheckROOT)
Method to build a package.
Bool_t IsInDir(const char *path)
Method to check if 'path' is in the managed directory Return kTRUE or kFALSE.
void SetPrefix(const char *pfx)
const char * GetName() const
Returns name of object.
TPackMgr & operator=(const TPackMgr &)
static Int_t RegisterGlobalPath(const char *paths)
Parse one or more paths as possible sources of packages Returns number of paths added; or -1 in case ...
void SetLogger(TPackMgrLog_t logger)
Bool_t Has(const char *pack)
Method to check if this package manager has package 'pack'.
typedef void((*Func_t)())
Int_t GetDownloadDir(TString &dldir)
Method to get the download dir; create if not existing Return -1 in case of error (not found; not cre...
void Log(const char *msg)
Wrapper to notofuer / logger.
Int_t Remove(const char *pack=0, Bool_t dolock=kTRUE)
Remove package 'pack' If 'pack' is null or empty all packages are cleared.
TMD5 * GetMD5(const char *pack)
Get MD5 checksum of the PAR file corresponding to given package Returns a pointer to a TMD5 object...
void(* TPackMgrLog_t)(const char *)
const char * Data() const