EntropyRepository implements SQLite3 based storage. In a Model-View
based pattern, it can be considered the "model". Actually it's
the only one available but more model backends will be supported in
future (which will inherit this class directly).
Every Entropy repository storage interface MUST inherit from this base
class.
|
|
__init__(self,
readOnly=False,
noUpload=False,
dbFile=None,
clientDatabase=False,
xcache=False,
dbname='etpdb:',
indexing=True,
OutputInterface=None,
ServiceInterface=None,
skipChecks=False,
useBranch=None,
lockRemote=True)
EntropyRepository constructor. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vacuum(self)
Repository storage cleanup and optimization function. |
source code
|
|
|
|
commitChanges(self)
Commit actual changes and make them permanently stored. |
source code
|
|
|
|
taintDatabase(self)
Server-side method that render your repository storage tainted,
modified. |
source code
|
|
|
|
untaintDatabase(self)
Server-side method that render your repository storage NOT tainted,
modified. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| clientUpdatePackagesData(self,
clientDbconn,
force=False) |
source code
|
|
|
|
|
|
|
|
|
|
| runTreeUpdatesMoveAction(self,
move_command,
quickpkg_queue) |
source code
|
|
|
|
| runTreeUpdatesSlotmoveAction(self,
slotmove_command,
quickpkg_queue) |
source code
|
|
|
|
|
|
|
|
|
|
| handlePackage(self,
etpData,
forcedRevision=-1,
formattedContent=False) |
source code
|
|
|
|
| retrieve_packages_to_remove(self,
name,
category,
slot,
injected) |
source code
|
|
|
|
| addPackage(self,
etpData,
revision=-1,
idpackage=None,
do_remove=True,
do_commit=True,
formatted_content=False) |
source code
|
|
|
|
| removePackage(self,
idpackage,
do_cleanup=True,
do_commit=True,
do_rss=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| addCompileFlags(self,
chost,
cflags,
cxxflags) |
source code
|
|
|
|
| setSystemPackage(self,
idpackage,
do_commit=True) |
source code
|
|
|
|
| setInjected(self,
idpackage,
do_commit=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| setCategoryDescription(self,
category,
description_data) |
source code
|
|
|
|
|
|
|
| setDependency(self,
iddependency,
dependency) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| insertDependencies(self,
idpackage,
depdata) |
source code
|
|
|
|
| insertManualDependencies(self,
idpackage,
manual_deps) |
source code
|
|
|
|
|
|
|
| insertContent(self,
idpackage,
content,
already_formatted=False) |
source code
|
|
|
|
|
|
|
| insertAutomergefiles(self,
idpackage,
automerge_data) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| insertChangelog(self,
category,
name,
changelog_txt) |
source code
|
|
|
|
|
|
|
|
|
|
| insertConfigProtect(self,
idpackage,
idprotect,
mask=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| insertSignatures(self,
idpackage,
signatures) |
source code
|
|
|
|
|
|
|
|
|
|
| insertConflicts(self,
idpackage,
conflicts) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| insertBranchMigration(self,
repository,
from_branch,
to_branch,
post_migration_md5sum,
post_upgrade_md5sum) |
source code
|
|
|
|
| setBranchMigrationPostUpgradeMd5sum(self,
repository,
from_branch,
to_branch,
post_upgrade_md5sum) |
source code
|
|
|
|
| insertPortageCounter(self,
idpackage,
counter,
branch,
injected) |
source code
|
|
|
|
| insertCounter(self,
idpackage,
counter,
branch=None) |
source code
|
|
|
|
|
|
|
| setCounter(self,
idpackage,
counter,
branch=None) |
source code
|
|
|
|
| contentDiff(self,
idpackage,
dbconn,
dbconn_idpackage) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| get_category_description_from_disk(self,
category) |
source code
|
|
|
|
|
|
|
| getIDPackageFromDownload(self,
download_relative_path,
endswith=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| getTriggerInfo(self,
idpackage,
content=True) |
source code
|
|
|
|
| getPackageData(self,
idpackage,
get_content=True,
content_insert_formatted=False,
trigger_unicode=True) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveRepositoryUpdatesDigest(self,
repository) |
source code
|
|
|
|
| listAllTreeUpdatesActions(self,
no_ids_repos=False) |
source code
|
|
|
|
| retrieveTreeUpdatesActions(self,
repository,
forbranch=None) |
source code
|
|
|
|
|
|
|
|
|
|
| insertTreeUpdatesActions(self,
updates,
repository) |
source code
|
|
|
|
| setRepositoryUpdatesDigest(self,
repository,
digest) |
source code
|
|
|
|
| addRepositoryUpdatesActions(self,
repository,
actions,
branch) |
source code
|
|
|
|
| doesTreeupdatesActionExist(self,
repository,
command,
branch) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveTrigger(self,
idpackage,
get_unicode=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveNeeded(self,
idpackage,
extended=False,
format=False) |
source code
|
|
|
|
|
|
|
| retrieveNeededLibraryPaths(self,
needed_library_name,
elfclass) |
source code
|
|
|
|
|
|
|
|
|
|
| setNeededLibraryIdpackages(self,
library_map) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrievePostDependencies(self,
idpackage,
extended=False) |
source code
|
|
|
|
| retrieveManualDependencies(self,
idpackage,
extended=False) |
source code
|
|
|
|
| retrieveDependencies(self,
idpackage,
extended=False,
deptype=None,
exclude_deptypes=None) |
source code
|
|
|
|
|
|
|
| retrieveDependencyFromIddependency(self,
iddependency) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveSources(self,
idpackage,
extended=False) |
source code
|
|
|
|
| retrieveAutomergefiles(self,
idpackage,
get_dict=False) |
source code
|
|
|
|
retrieveContent(self,
idpackage,
extended=False,
contentType=None,
formatted=False,
insert_formatted=False,
order_by='') |
source code
|
|
|
|
|
|
|
| retrieveChangelogByKey(self,
category,
name) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveCategoryDescription(self,
category) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| retrieveDepends(self,
idpackage,
atoms=False,
key_slot=False,
exclude_deptypes=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| isFileAvailable(self,
myfile,
get_id=False) |
source code
|
|
|
|
| resolveNeeded(self,
needed,
elfclass=-1,
extended=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isCounterAvailable(self,
counter,
branch=None,
branch_operator='=') |
source code
|
|
|
|
|
|
|
| isLicensedataKeyAvailable(self,
license_name) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| areCompileFlagsAvailable(self,
chost,
cflags,
cxxflags) |
source code
|
|
|
|
searchBelongs(self,
file,
like=False,
branch=None,
branch_operator='=') |
source code
|
|
|
|
| searchEclassedPackages(self,
eclass,
atoms=False) |
source code
|
|
|
|
| searchTaggedPackages(self,
tag,
atoms=False) |
source code
|
|
|
|
| searchLicenses(self,
mylicense,
caseSensitive=False,
atoms=False) |
source code
|
|
|
|
| searchSlottedPackages(self,
slot,
atoms=False) |
source code
|
|
|
|
| searchKeySlot(self,
key,
slot,
branch=None) |
source code
|
|
|
|
|
|
|
| searchDependency(self,
dep,
like=False,
multi=False,
strings=False) |
source code
|
|
|
|
| searchIdpackageFromIddependency(self,
iddep) |
source code
|
|
|
|
|
|
|
| searchSimilarPackages(self,
mystring,
atom=False) |
source code
|
|
|
|
searchPackages(self,
keyword,
sensitive=False,
slot=None,
tag=None,
branch=None,
order_by='atom',
just_id=False) |
source code
|
|
|
|
| searchProvide(self,
keyword,
slot=None,
tag=None,
branch=None,
justid=False) |
source code
|
|
|
|
|
|
|
| searchPackagesByName(self,
keyword,
sensitive=False,
branch=None,
justid=False) |
source code
|
|
|
|
| searchPackagesByCategory(self,
keyword,
like=False,
branch=None) |
source code
|
|
|
|
| searchPackagesByNameAndCategory(self,
name,
category,
sensitive=False,
branch=None,
justid=False) |
source code
|
|
|
|
| isPackageScopeAvailable(self,
atom,
slot,
revision) |
source code
|
|
|
tuple
|
isBranchMigrationAvailable(self,
repository,
from_branch,
to_branch)
Returns whether branch migration metadata given by the provided key
(repository, from_branch, to_branch,) is available. |
source code
|
|
|
|
listAllPackages(self,
get_scope=False,
order_by=None,
branch=None,
branch_operator='=') |
source code
|
|
|
|
| listAllInjectedPackages(self,
justFiles=False) |
source code
|
|
|
|
listAllCounters(self,
onlycounters=False,
branch=None,
branch_operator='=') |
source code
|
|
|
|
listAllIdpackages(self,
branch=None,
branch_operator='=',
order_by=None) |
source code
|
|
|
|
|
|
|
|
|
|
listIdPackagesInIdcategory(self,
idcategory,
order_by='atom') |
source code
|
|
|
|
|
|
|
| listAllDownloads(self,
do_sort=True,
full_path=False) |
source code
|
|
|
|
| listAllFiles(self,
clean=False,
count=False) |
source code
|
|
|
|
|
|
|
| listConfigProtectDirectories(self,
mask=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| getIdpackagesDifferences(self,
foreign_idpackages) |
source code
|
|
|
|
|
|
|
alignDatabases(self,
dbconn,
force=False,
output_header=' ',
align_limit=300) |
source code
|
|
|
|
|
|
|
|
|
|
| doDatabaseExport(self,
dumpfile,
gentle_with_tables=True,
exclude_tables=None) |
source code
|
|
|
|
|
|
|
|
|
|
| doesColumnInTableExist(self,
table,
column) |
source code
|
|
|
|
| database_checksum(self,
do_order=False,
strict=True,
strings=False) |
source code
|
|
|
|
| updateInstalledTableSource(self,
idpackage,
source) |
source code
|
|
|
|
| addPackageToInstalledTable(self,
idpackage,
repoid,
source=0) |
source code
|
|
|
|
| retrievePackageFromInstalledTable(self,
idpackage) |
source code
|
|
|
|
| removePackageFromInstalledTable(self,
idpackage) |
source code
|
|
|
|
| removePackageFromDependsTable(self,
idpackage) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| regenerateCountersTable(self,
vdb_path,
output=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| addDependsRelationToDependsTable(self,
iterable) |
source code
|
|
|
|
|
|
|
|
|
|
| regenerateLibrarypathsidpackageTable(self,
output=True) |
source code
|
|
|
|
| moveCountersToBranch(self,
to_branch,
from_branch=None) |
source code
|
|
|
|
|
|
|
|
|
|
| atomMatchValidateCache(self,
cached_obj,
multiMatch,
extendedResults) |
source code
|
|
|
|
| idpackageValidator(self,
idpackage,
live=True) |
source code
|
|
|
|
|
|
|
atomMatch(self,
atom,
caseSensitive=True,
matchSlot=None,
multiMatch=False,
matchBranches=(),
matchTag=None,
matchUse=(),
packagesFilter=True,
matchRevision=None,
extendedResults=False,
useCache=True) |
source code
|
|