Commit Graph

2218 Commits

Author SHA1 Message Date
lxnay fd6f2f0ae5 Entropy/SocketInterface:
- fix previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2757 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-10 00:09:22 +00:00
lxnay 26103471b0 Entropy/SocketInterface/RequestHandler:
- fix transmit method call


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2756 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 23:54:02 +00:00
lxnay 0bad181805 Entropy/EntropyDatabaseInterface:
- do not crash on createPackagesetsIndex


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2755 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 23:50:51 +00:00
lxnay 88c245c845 Entropy/RepoInterface:
- _config_updates_make_profile(): if /etc/make.profile is broken, remove the symlink first


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2751 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 22:27:16 +00:00
lxnay ebe551db54 Entropy/EquoInterface:
loadRepositoryDatabase(): check if repositoryName is a string
generate_depends_tree(): fix issues with system packages dependencies resolution (like sys-kernel/linux-sabaupm=
PackageSettings:
- on repos_system_mask_installed key, pull all the available idpackages using multiMatch, which seems better
- repos_system_mask_installed_keys: add helper dict to ease interaction


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2750 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 22:03:33 +00:00
lxnay 11901f4c96 Entropy/EquoInterface:
- packageSetExpand(): use etpConst['packagesetprefix'] length to remove the prefix (@)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2745 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 18:55:37 +00:00
lxnay 47c6252dc1 Entropy/TimeScheduled:
- make possible to sleep before spawning the function
Entropy/EquoInterface:
- packageSetMatch: return empty tuple if no matches are found (instead of empty dict) when multiMatch is not enabled
- generate_dependency_tree(): add flat option, to return a yet ordered dependencies list (instead of a dict)
- generate_dependency_tree(): slightly update speed when creating the final dictionary
Entropy/phpBB3AuthInterface:
- make possible to disable the update of the session table
Entropy/UGCCacheInterface:
- get_package_downloads(): always return int


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2744 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-09 13:12:31 +00:00
lxnay f228e68597 Entropy/Equo:
- add support for package sets
Entropy/EquoInterface:
- group initConfig_entropyConstants calls in a stand-alone EquoInterface method
- half-implement in-memory repositories (will be completed upon request)
- atomMatch: support matchRepo for server-repos too
Entropy/TODO:
- update TODO
Entropy/EquoInterface:
- improve packageSetMatch method
- implement packagesExpand and packageSetExpand methods
Entropy/exceptionTools:
- implement new InvalidPackageSet exception


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2738 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 12:48:47 +00:00
lxnay 46ba10dcbd Entropy/Equo/Reagent:
- implement package sets search
Entropy/ServerInterface:
- implement packageSetList, packageSetSearch, packageSetMatch methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2737 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 10:17:14 +00:00
lxnay 0172841210 Entropy/phpBB3AuthInterface:
- improve phpbb username validation on registration


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2736 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 09:11:52 +00:00
lxnay fd85e10164 Entropy/EntropyDatabaseInterface:
- implement table structure for supporting package sets
- add methods to handle them: clearPackageSets(), insertPackageSets(), retrievePackageSets()
Entropy/Socket Server Interface:
- if command is not valid, return a CL answer
Entropy/Socket Server Client Interface:
- handle CL answers on receive()
Entropy/ServerInterface:
- add support for package sets, loading data from sets/ database dir subdirectory
- automatically handle them by updating the db at every change
Entropy/Repository Daemon:
- add EAPI3 support for package sets
Entropy/RepoInterface/EquoInterface:
- add support for package sets on sync
- add package sets match and search functions
more tomorrow


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2735 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-07 22:38:42 +00:00
lxnay 6f7cd190e9 Entropy/entropyTools:
- add extract_packages_from_set_file method, just a helper function
Entropy/Package Masking inteface reworked:
- etpConst['packagemasking'] is gone, the Package masking interface changed name, now it's called PackageSettings and is a standalone class that can work like a simple python dictionary object
- adapt all the code to the new interface, which is close to final and pretty solid if compared to the old one etpConst['packagemasking'] dict and its issues (like being un-initialized)
Entropy/Package sets support:
- implement server-side methods (ServerInterface) to collect repository-defined sets
Entropy/urlFetcher:
- move some init code to stand-alone functions (setup_proxy and setup_resume_support method)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2733 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-07 19:28:05 +00:00
lxnay 48e409da0c Entropy/entropyConstants:
- empty system_packages list, we now have packages.db.system_mask, which is the best place to put system packages
Entropy/PortageInterface:
- add suport to package sets, introducing 3 new methods: get_set_config(), get_sets(), get_sets_expanded()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2732 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-07 16:22:53 +00:00
lxnay 809d7c210f Entropy/phpBB3AuthInterface:
- move _generate_sql() to RemoteDbSkelInterface, so every other class can benefit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2731 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-07 13:09:40 +00:00
lxnay 1a3b088ed1 Entropy/packages.db.mask syntax:
- remove branch parameter from file atoms syntax
- update code accordingly
Entropy/phpBB3AuthInterface:
- _generate_sql(): fix SQL update statement with utf-8 chars


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2730 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-07 13:08:01 +00:00
lxnay f398a91ca6 Entropy/DistributionUGCInterface:
- finalize SQL indexes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2729 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 16:20:43 +00:00
lxnay 0d16ca7173 Entropy/DistributionUGCInterface:
- fix previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2728 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:42:20 +00:00
lxnay 7712fcb660 Entropy/DistributionUGCInterface:
- make cache expiration time configurable per cache item


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2727 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:39:08 +00:00
lxnay 4b9c8956a8 Entropy/SocketInterface:
- when processing a command, make sure cmd_data (thus cmd) is valid (must be a dict)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2726 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:33:43 +00:00
lxnay c1346bea70 Entropy/dumpTools:
- getobjmtime(): fix dump_path generation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2725 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:28:49 +00:00
lxnay b44bf5350d Entropy/DistributionUGCInterface:
- add caching infrastructure to avoid running long queries multiple times returning the same result
- set cache expiration to 1 day by default


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2724 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:03:51 +00:00
lxnay 281de8e097 Entropy/DistributionUGCInterface:
- use SQL_CACHE MySQL feature on biggest queries


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2723 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 11:31:40 +00:00
lxnay 9bcee6f1b6 Entropy/TODO:
- update TODO
Entropy/EquoInterface:
- avoid removal of system_mask-ed packages client-wide


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2722 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-05 22:58:46 +00:00
lxnay fa969f42ce Entropy:
- remove the use of list.sort() method in favour of sorted(list)
- implement a per-repository system packages mask, to force clients to install specified packages (like one of the slotted sys-libs/db packages for convenience), consider this an extension to system packages


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2721 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-05 21:37:18 +00:00
lxnay 0bcc693bfc Entropy/EquoInterface:
- filterSatisfiedDependencies(): give up if the repo db is broken


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2717 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-04 22:23:35 +00:00
lxnay 5854dd934c Entropy/rssFeed:
- writeChanges(): add reverse param, to avoid writing elements in the reverse order


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2713 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-04 13:45:42 +00:00
lxnay daddbcff2f Entropy/phpBB3AuthInterface:
- login(): check against username column and not username_clean


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2712 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-04 00:27:48 +00:00
lxnay 4e56e233c8 Entropy/DistributionUGCInterface:
- get_users_score_ranking(): reverse query results order


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2711 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-03 21:53:05 +00:00
lxnay 14990c422e Entropy/DistributionUGCInterface:
- get_users_score_ranking(): make it faster


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2710 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-03 21:44:35 +00:00
lxnay 5ccd3fc22a Entropy/DistributionUGCInterface:
- get_users_score_ranking(): fix the function, was completely broken


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2709 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-03 21:41:44 +00:00
lxnay fb8eb4a60a Entropy/DistributionUGCInterface:
- get_users_score_ranking(): return a tuple providing information about the amount of rows found


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2708 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-03 21:21:11 +00:00
lxnay 80c06f15ea Entropy/DistributionUGCInterface:
- get_users_score_ranking(): add LIMIT support to query


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2707 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-03 20:57:14 +00:00
lxnay 078544ed0d Entropy/libraries test:
- always check /usr/libexec too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2706 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-28 22:36:54 +00:00
lxnay 4a493bfc75 Entropy/ServerInterface:
- libraries_test: obviously colour functions can't print tuples

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2704 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-23 16:36:22 +00:00
lxnay b0d45c6ba9 Entropy/PortageInterface:
- add new method query_belongs_multiple to allow multiple files to be matched simultaneously
Entropy/ServerInterface:
- update libraries_test to use the new method above and print more info


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2703 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-23 14:43:46 +00:00
lxnay 04937064b0 Entropy/EquoInterface:
- libraries_test: add /usr/share to the directories to scan


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2702 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-23 12:57:17 +00:00
lxnay 7ace4938ce Entropy/entropyTools:
- uncompressTarBz2: fix typo

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2700 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-21 14:38:33 +00:00
lxnay 5e89bd7ce4 Entropy/entropyTools:
- improve uncompressTarBz2

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2699 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-21 09:10:20 +00:00
lxnay 2ee5b5b1cb Entropy/EntropyDatabaseInterface:
- retrieveKeySlotTag: new handy method
Entropy/EquoInterface:
- get_match_conflicts: automatically ignore matches pointing to the same package


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2698 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-19 12:47:36 +00:00
lxnay 8f585f0204 Entropy/PackageInterface:
- TriggerInterface.triggers moved from set() to list(), thus -= operator is not available


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2697 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 16:38:42 +00:00
lxnay 0ea1c6b088 Entropy/PackageInterface:
- __unpack_package(): handle EOFError exceptions raised by spawnFunction and hope that it's been just a fatality


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2696 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 13:34:26 +00:00
lxnay 63ce8ae39b Entropy/EquoInterface:
- fix Portage world file update when Entropy packages are kernel tagged

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2695 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 13:13:05 +00:00
lxnay 00123dde1e Entropy/EquoInterface/TriggerInterface:
- remove most of the internal triggers used by gentoo-compat=False, it's not the place to store this stuff


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2693 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 13:00:47 +00:00
lxnay 6d166039bd Entropy/entropyConstants:
- always enable Gentoo-compat, remove ability to disable it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2691 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 12:49:26 +00:00
lxnay 6b4c90f048 Entropy/EquoInterface:
- reorder args & kwargs of the Triggers method
- pass the package action to the TriggerInterface class
Entropy/PackageInterface/TriggerInterface:
- fix an issue causing nvidia drivers opengl interface to be disabled


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2690 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-18 12:14:44 +00:00
lxnay 930f39420a Entropy/Branch switching:
- on Equo, force world updates calculation to use the new branch in any case


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2689 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-15 16:09:25 +00:00
lxnay 6c4dc0cc19 Entropy/phpbb3AuthInterface:
- is_administrator(): check in all available admin groups before returning False


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2688 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-14 21:27:21 +00:00
lxnay d925788abb Entropy/Repository Manager:
- fix branch handling, convert back to str


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2687 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-13 21:08:20 +00:00
lxnay 8520fb471f Entropy/RemoteDbSkelInterface:
- add fetchall2list,fetchall2set,fetchone2set,fetchone2list methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2686 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-12 21:47:36 +00:00
lxnay 8880208f95 Entropy/SystemManagerExecutorServerRepositoryInterface:
- open stdout_err in a+ mode instead of aw


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2685 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-12 14:37:12 +00:00