Commit Graph

1585 Commits

Author SHA1 Message Date
lxnay
b5ec9b033d Entropy/database split:
- some changes to allow easy branch migration through the 'switchbranch' tool


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2498 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 13:36:40 +00:00
lxnay
30782e37ed Entropy:
- database split: work out the client part


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2497 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 12:41:17 +00:00
lxnay
561db807d5 Entropy:
- databases now split by branch (first chunk, ServerInterface migrated, EquoInterface and Repository Daemon to go


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2496 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 12:05:00 +00:00
lxnay
38c4481d05 Entropy/DistributionUGCInterface:
- insert_youtube_video(): add google client id support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2490 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-07 12:41:56 +00:00
lxnay
c5e564c838 Entropy/System Manager:
- write_to_running_command_pipe(): add the ability to not write stdin to stdout through a simple bool
Entropy/DistributionUGCInterface:
- add Google developer key support (if provided)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2488 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-07 10:51:02 +00:00
lxnay
a7a84731c2 Entropy/outputTools:
- my_raw_input: make txt optional


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2485 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 18:19:03 +00:00
lxnay
e40be9ae26 Entropy/EntropyDatabaseInterface:
- do not crash on completely broken atom (USE deps)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2484 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 17:51:28 +00:00
lxnay
1b6e1c62da Entropy/EntropyDatabaseInterface:
- do not crash on completely broken atom (USE deps)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2483 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 17:46:10 +00:00
lxnay
8553d11794 Entropy/entropyTools:
- improve remove_usedeps()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2482 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 17:43:08 +00:00
lxnay
40143779d3 Entropy/EntropyDatabaseInterface:
- atomMatch(): do not crash on badly formatted atom when dealing with USE dependencies


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2481 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 17:34:13 +00:00
lxnay
323e29de7e Entropy/EntropyDatabaseInterface:
- fix issues with string formatting when remote database is locked (server-side only)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2480 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 17:24:00 +00:00
lxnay
1ec6159d13 Entropy/System Manager:
- fix issues with parallel tasks on the queue_processor: always break the loop if fork_data
- never accept to keep the queue locked even if an exception is raised inside the queue_processor
- add support for remote interactivity on all the publicly exported commands (this allows to interact with the functions/tasks remotely)
Entropy/PortageInterface:
- add usedeps_reduce to filter out unwanted Portage EAPI2 USE dependencies


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2478 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 13:58:09 +00:00
lxnay
50ccec54f7 Entropy/outputTools:
- do not use raw_input(), which is shit, poll stdin instead


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2477 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-06 13:54:12 +00:00
lxnay
1e84722069 Entropy/Repository Manager:
- fix another typo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2475 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 18:29:03 +00:00
lxnay
5f893fe00f Entropy/Repository Manager:
- fix typo

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2474 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 18:11:14 +00:00
lxnay
3f778f87c8 Entropy/Repository Manager:
- enable basic commands interactivity (half done)
testing


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2473 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 18:00:41 +00:00
lxnay
add3b8d5a7 Entropy/PortageInterface:
- calculate_dependencies(): fix typo error


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2472 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 15:37:19 +00:00
lxnay
2a91f4a61f Entropy/PortageInterface:
- calculate_dependencies(): handle IUSE EAPI2 style correctly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2471 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 15:32:55 +00:00
lxnay
79f67e6e6f Entropy/EntropyDatabaseInterface:
- WriteLock, thread lock fixes
- code style fixes
Entropy/Repository Manager:
- use copy.deepcopy() to store functions' args and kwargs inside the dict


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2470 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 15:28:06 +00:00
lxnay
c7d7131400 Entropy/SocketHostInterface:
- fix an issue that caused the SessionLock to be acquired twice by the expired sessions collector (second time in destroy_session)
Entropy/SystemManagerClientInterface:
- reword kill_all_connections and add the ability to cache them or not by providing this bool option to the instantiator


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2469 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-05 09:26:51 +00:00
lxnay
0455b20508 Entropy/Spritz:
- avoid to crash on queue item split when trying to retrieve a command result
Entropy/Repository Manager:
- complete the previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2468 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 18:56:07 +00:00
lxnay
6e7744d73f Entropy/Repository Manager:
- make docmd_get_queue() locking the queue before reading it
- make the queue_processor() to really handle parallelizable (? wtf ?) tasks


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2467 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 18:47:15 +00:00
lxnay
d32c3049ea Entropy/Repository Manager:
- make it stronger when dealing with Portage on Spm functions
Entropy/Spritz:
- do not consider spm package dict static


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2466 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 18:11:27 +00:00
lxnay
430091eb8e Entropy/SocketHostInterface:
- use thread lock on sessions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2465 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 17:48:15 +00:00
lxnay
5e632c1fd7 Entropy/Repository Manager Executor:
- scan_entropy_packages_database_changes() making it shell-safe


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2464 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 17:39:53 +00:00
lxnay
3a764d1f93 Entropy/Repository Manager Executor:
- scan_entropy_packages_database_changes() making it shell-safe


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2463 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 17:38:18 +00:00
lxnay
eac9b8a9de Entropy/Repository Manager:
- make stdout_logging option working


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2462 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 17:17:07 +00:00
lxnay
b440869534 Entropy/misc:
- some tweaks before 0.21


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2459 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 16:13:51 +00:00
lxnay
f8eb794969 Entropy/Repository Manager:
- add --nodeps option to compile_atoms


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2457 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 14:11:54 +00:00
lxnay
0b3e6e55ed Entropy/Repository Manager:
- add digest verification functions
- use TimeScheduled for the connection killer handler instead of a horrible while loop
- kill all the connection on class deletion
M3 is DONE!


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2454 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 13:12:33 +00:00
lxnay
c8f6fb0e60 Entropy/System Manager:
- cache socket connection to improve speed
- add extended_result keyword inside queue items metadata to redirect big results there and avoid to have remote get_queue() taking a lot due to the need to serialize big data
- complete 'reagent' part
- implemented most of the 'activator' functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2452 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 01:59:47 +00:00
lxnay
ccdd7aec7f Entropy/entropyConstants:
- switch branch to 4 by default in hard-coded config


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2451 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 01:57:22 +00:00
lxnay
25836b46b7 Entropy/entropyTools:
- add a function to truncate a file till its first newline char


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2450 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 01:56:42 +00:00
lxnay
98b84340df Entropy/EquoInterface:
- openMemoryDatabase(): new function to open an empty Entropy database on RAM
Entropy/ServerInterface:
- get_available_repositories(): helper function to retrieve the list of available server-side repositories
- switch_default_repository(): make uninitialized repository handling optional
- openServerDatabase(): add do_cache parameter, make database classes caching optional
Entropy/Repository Manager:
- remote database management is almost complete, NLnet M3 @ 95% !
Entropy/EntropyDatabaseInterface:
- make it working on multiple, different threads
- add a thread lock (WriteLock) to handle multiple writes correctly
- removePackage(): make it looking better


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2446 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-30 21:42:42 +00:00
lxnay
149c1ca5a2 Entropy/Portage:
- add EAPI2 support (entropyTools)
Entropy/atomMatch:
- add support for matching USE flags and Portage EAPI2 syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2445 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-30 11:41:33 +00:00
lxnay
50da03d02a Entropy/RepositoryManager:
- add --fetchonly and --buildonly support to compile_atoms()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2444 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-30 10:09:06 +00:00
lxnay
6380f2d8ec Entropy/entropyTools:
- fix issues with xgettext


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2443 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-30 10:08:41 +00:00
lxnay
de565dace8 Entropy/SystemManagerServerInterface:
- split queue processor in two, for items that can be run in parallel and others that cannot


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2440 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-29 21:18:40 +00:00
lxnay
f5a91e61a9 Entropy/RepositoryManager:
- goodbye old one, hope to not read you soon (:P)
Entropy/UGCCacheInterface:
- use thread locks instead of a simple bool, safer
Entropy/EntropyDatabaseInterface:
- createCountersIndex(): remove duplicated method, merge into one
Entropy/SystemManagerRepositoryMethodsInterface:
- implement a LOT of new methods
- SPM part completed
Entropy/SystemManagerMethodsInterface:
- add pinboard handling support
Entropy/SystemManagerRepositoryClientCommands:
- implement all the basic SPM command
Entropy/SystemManagerServerInterface:
- use thread locks for the queue data
- improve speed by reworking QueueManager data structure
- update functions accordingly
- add pinboard support
Entropy/SystemManagerExecutorServerRepositoryInterface:
- complete SPM support
Entropy/PortageInterface:
- add list_glsa_packages() method
- add get_glsa_id_information() method
- rework get_best_masked_atom() method
- rework get_category_description_data()
- rework get_atoms_in_system()
- rework get_atom_category()
- add get_installed_package_description()
- add get_package_slot()
- add get_package_useflags()
- add get_installed_package_useflags()
- add get_installed_package_setting()
Entropy/SocketHostInterface:
- make it leaking less


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2437 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-29 20:00:59 +00:00
lxnay
e5be4c8a93 Entropy/entropyConstants:
- add some SPM options for future reference


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2436 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-29 19:50:47 +00:00
lxnay
ab1a96446b Entropy/entropyTools:
- dict_from_xml(): make it working for empty strings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2435 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-29 19:50:15 +00:00
lxnay
3f849ffb5f Entropy/PortageInterface:
- complete enable_package_useflags() and disable_package_useflags()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2433 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-26 09:29:37 +00:00
lxnay
716f06c3a2 Entropy/DatabaseInterface:
- insertCounter(): improve SQL syntax on DELETE


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2432 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-26 08:16:39 +00:00
lxnay
d91aa20e27 Entropy/Database Interface:
- insertCounter(): when running DELETE, also consider the branch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2431 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-26 08:14:53 +00:00
lxnay
b85d9e1361 Entropy/ServerInterface:
- openServerDatabase(): hopefully fix counters table migration definitely


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2430 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 18:10:12 +00:00
lxnay
4a3d4eeff6 Entropy/ServerInterface:
- openServerDatabase(): force read-write hard !


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2429 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 17:54:02 +00:00
lxnay
d18b7b5322 Entropy/ServerInterface:
- openServerDatabase(): force a commit when migrating counters even if it is opened read-only


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2428 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 17:46:01 +00:00
lxnay
3cd5c0811d Entropy/EquoInterface:
- improve openRepositoryDatabase() reliability by considering the thread identifier when using its cache
Entropy/ServerInterface:
- do the same as above for the server database
- copy counters across branches only if the db is opened rw


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2427 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 17:43:18 +00:00
lxnay
4363f805ab Entropy/ServerInterface/Database Interface:
- code optimization when using SQLite executemany()
- change counters table structure (auto-migrated) to allow multiple branches support to work server-side, this shouldn't affect other things that much, hopefully


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2426 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 17:11:10 +00:00
lxnay
7c47ae9908 Entropy/ServerInterface:
- fix an issue with showing download paths


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2425 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-25 12:50:03 +00:00