Commit Graph

2218 Commits

Author SHA1 Message Date
lxnay 357b2fe754 Entropy/outputTools:
- use SystemExit instead of sys.exit()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2857 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 18:47:06 +00:00
lxnay 6ac41432c2 Entropy/EntropyDatabaseInterface:
- insertDependencies(): improve speed
- insertPackageSets(): improve reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2852 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 22:25:11 +00:00
lxnay f083b686ca Entropy/EntropyDatabaseInterface:
- make insertPackageSets method working
- improve speed of listBranchPackagesTbz2


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2851 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 22:16:03 +00:00
lxnay 9a7243351b Entropy/ServerInterface:
- add parameter dbconn to update_database_package_sets


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2850 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 21:38:12 +00:00
lxnay cb5f2a8bbb Entropy/EntropyDatabaseInterface:
- addPackageToInstalledTable(): code style update
- insertPackageSets(): do not use an iter function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2849 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 21:22:33 +00:00
lxnay 031045bca5 Entropy/EntropyDatabaseInterface:
- improve insertPackageSets


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2848 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 21:04:47 +00:00
lxnay b6341b436c Entropy/PortageInterface:
- fix package sets retrieval


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2846 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-04 22:56:05 +00:00
lxnay 4162925768 Entropy/PortageInterface:
- fix package sets retrieval


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2845 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-04 22:51:17 +00:00
lxnay d4b919f1fa Entropy/TODO:
- update TODO
Entropy/EntropyDatabaseInterface:
- new method retrieveUnusedIdpackages
Entropy/EquoInterface:
- new method unused_packages_test(), self explanatory
Entropy/Equo:
- new command 'unusedpackages', useful to search unused dependencies/packages


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2842 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-04 14:10:08 +00:00
lxnay f876e7909e Entropy/PackageInterface:
- __move_image_to_system: consider systemroot when generating my_remove_content


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2840 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-03 22:03:53 +00:00
lxnay 30661a5ae6 Entropy/PackageInterface:
- __move_image_to_system(): improve reliability of items_installed generation by forcing elements to their real path

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2838 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-03 21:50:40 +00:00
lxnay d872ecedf1 Entropy/PackageInterface:
- fix differential packages removal when files are moved to a symlinked subdir to another while the real path is the same
- other speed improvements
Entropy/misc:
- misc syntax improvements


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2836 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-03 21:37:19 +00:00
lxnay a3f3f01c67 Entropy/matchContainer: bye bye class
Entropy/EquoInterface:
- get_package_action(): improve speed
- get_masked_packages_tree(): improve speed and reliability
- generate_dependency_tree(): improve speed
- _lookup_inverse_dependencies(): improve speed through caching
- get_required_packages(): slightly improve speed
- retrieveInstallQueue(): disable some useless output if quiet == True
Entropy/PackageInterface:
- use database method getVersioningData in __generate_install_metadata()
Entropy/ServerInterface:
- revert undefined symbols check on libtest since there can be a LOT of false positive
Entropy/EntropyDatabaseInterface:
- searchKeySlot(): split key and change SQL to improve speed by 15 times


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2833 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-02 21:57:13 +00:00
lxnay 074bd3d9aa Entropy/entropyTools:
- some optimizations to the elf metadata reading/parsing functions
- new function read_elf_broken_symbols
Entropy/QAInterface:
- libraries_test: implement broken symbols check, optional
Entropy/ServerInterface:
- always enable broken symbols check on libtest


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2830 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-02 13:10:57 +00:00
lxnay 19f9ed6274 Entropy/TriggerInterface:
- fix subprocess.call function call


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2824 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-01 17:31:32 +00:00
lxnay ff606ff438 Entropy/entropyTools:
- bye bye old uncompressTarBz2 function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2823 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-01 17:31:10 +00:00
lxnay b23d900424 Entropy/EquoInterface:
- move __del__ calls to a new destroy method and call it inside __del__


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2822 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-01 10:36:14 +00:00
lxnay 674c59fd2e Entropy/LogFile:
- improve code quality
Entropy/EquoInterface:
- close clientLog file on object deletion


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2821 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-01 08:44:09 +00:00
lxnay 93176ad2ca Entropy/entropyTools:
- applicationLockCheck: raise SystemExit exception instead of sys.exit
Entropy/EquoInterface:
- changed dependencies calculation results, always pull in updated dependencies, deep_deps now works with revisions, disabled 'needed' check
Entropy/entropyConstants:
- fix a small bug in const_setupEntropyPid: that caused to report entropy as locked if entropy.pid is found but empty


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2819 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-31 08:33:18 +00:00
lxnay 4bf56a99c3 Entropy/TODO:
- update TODO
Entropy/entropyConstants:
- say goodbye to etpRSSMessages
- other cosmetical fixes
Entropy/EquoInterface:
- close LogFile instance's file on instance delete
- wipe os.system() calls
- rewrite get_meant_packages() to use SOUNDEX features of SQLITE3
- replace old and slow filterSatisfiedDependencies with get_unsatisfied_dependencies, which is faster and more reliable (added NEEDED check by default)
- improve speed of generate_dependency_tree
- improve speed of get_required_packages
- fix get_world_update_cache_hash()
- improve speed of retrieveInstallQueue
- make __unpack_package reporting the right error on uncompressTarBz2 if this crashes
- remove Python 2.4/2.5 workarounds since they are not needed anymore, being entropyTools.uncompressTarBz2 fixed forever (handling UTF-8 filenames correctly)
- adjust __move_image_to_system for the changes above
- __move_image_to_system, if an error is caught on shutil.move, do not crash but report it to user instead
Entropy/TriggerInterface:
- replace os.system() with subprocess.call()
- remove unused nspluginwrapper trigger
Entropy/ErrorReportInterface:
- add locale output
- get the full content of ps auxf, not just the first 80 chars
- update handler accordingly (handlers/)
Entropy/LogFile:
- close log file on object deletion
Entropy:
- import subprocess by default
Entropy/EntropyDatabaseInterface:
- remove etpRSSMessages and use a ServerInterface variable instead
- add new method getVersioningData, useful to speed up other Entropy areas
- improving speed of other functions adding more one-liners conditionals
- add new method retrieveNeededRaw, useful to speed up other Entropy areas
- improve speed of retrieveDependenciesList, everything can be done at SQL level
- new method searchSimilarPackages that uses SOUNDEX to retrieve similar package/atom names
- improve speed of listAllCategories
- shrink databaseStructureUpdates
- remove old and dusted method
- improve speed of doDatabaseImport
- improve speed of database_checksum
- group multiple .cursor.execute using .cursor.executescript
- improve speed of __filterSlotTagUse
Entropy/entropyTools:
- improve speed and reliability of uncompressTarBz2


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2818 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-30 18:43:16 +00:00
lxnay 3588f90e10 Entropy/EntropyDatabaseInterface:
- remove updatePackage: not needed anymore
- improve handlePackage execution speed
- improve addPackage execution speed
- improve removePackage execution speed (dropping backward compat with ancient databases)
- move rss handling to their own functions
- improve speed of regenerateDependsTable
- add method addDependsRelationToDependsTable
- add method clearDependsTable
- improve isDependsTableSane reliability
- reduce length of removeDependencyFromDependsTable
- improve speed and reliability of clearCache
- improve speed of insertContent by using map()
- update retrieve_packages_to_remove
Entropy/PackageInterface:
- improve speed of _install_package_into_database
Entropy/EquoInterface:
- optimize get_world_update_cache_hash
- optimize get_available_packages_chash


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2816 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-22 21:29:29 +00:00
lxnay 20632c7e27 Entropy/entropyConstants:
- add dependstable to the SQL db generation string


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2815 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-22 21:23:03 +00:00
lxnay c0e48328ca Entropy/dumpTools:
- use a safer with statement while opening file objects in loadobj and dumpobj functions

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2811 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-21 19:10:31 +00:00
lxnay 0135894c20 Entropy/PackageInterface:
- rework run_stepper() and avoid using infinite elif conditionals
Entropy/PortageInterface:
- disable forking on spm_doebuild call to improve speed by 25% (need to verify memleaks)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2810 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-21 16:20:03 +00:00
lxnay 49ad66265c Entropy:
- when using os.fork(), always force child process to quit using os._exit()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2808 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-19 01:03:18 +00:00
lxnay 3310d3c195 Entropy/PortageInterface:
- when etpUi['mute'] is set, run_fixpackages() will be silent


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2807 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-18 14:33:06 +00:00
lxnay 0e6de7abda Entropy/EntropyDatabaseInterface:
- runTreeUpdatesSlotmoveAction(): fix slotmove action execution under very rare conditions
- filterTreeUpdatesActions(): improve reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2805 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-18 11:42:02 +00:00
lxnay c3e6c21189 Entropy/TODO:
update TODO
Entropy/EntropyDatabaseInterface:
- slightly improve atomMatch speed
- add method uniformBranch
Entropy/EquoInterface:
- fix a small type issue in dependencies_test (nothing relevant)
- fix a small issue in generate_dependency_tree (nothing to worry about)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2804 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-18 10:35:37 +00:00
lxnay f15ad492a4 Entropy/EntropyDatabaseInterface:
- packagesFilter: remove atom parameter, being unused
- retrieveSystemPackages: fix method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2800 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-17 12:13:18 +00:00
lxnay a4bdc3bf36 Entropy/TODO:
- update TODO
Entropy/System Packages:
- add user configurable system packages through /etc/entropy/packages/system.mask


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2799 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-17 12:10:23 +00:00
lxnay ca2afa3cb3 Entropy/Equo/conf:
- remove kdmrc from configprotectskip|
Entropy/EquoInterface:
- fix addRepository() for tbz2 packages


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2795 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 20:39:10 +00:00
lxnay e6f51377b7 Entropy/EquoInterface:
- repo_error_messages_cache must be a set()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2793 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 15:10:22 +00:00
lxnay 161a46d449 Entropy/ServerInterface:
- orphaned_spm_packages_test(): print packages not found in string form


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2792 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 15:02:48 +00:00
lxnay 5a11837e25 Entropy/ServerInterface:
- orphaned_spm_packages_test(): print packages not found in string form


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2791 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 15:01:23 +00:00
lxnay b45a1d7492 Entropy/ServerInterface:
- orphaned_spm_packages_test(): ease output


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2790 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 14:59:05 +00:00
lxnay 5d62fc68e7 Entropy/ServerInterface/Reagent:
- implement orphaned SPM packages scan


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2787 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 14:54:42 +00:00
lxnay a16edd0cbe Entropy/EquoInterface:
- calculate_world_update(): fix some trivial and conceptual bugs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2785 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-14 18:49:25 +00:00
lxnay 520522cd4f Entropy:
- misc improvements


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2784 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-14 15:04:23 +00:00
lxnay 5337fdec11 Entropy/caches:
- remove cache global variables
- say goodbye to const_resetCache, not needed anymore


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2783 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-14 13:23:52 +00:00
lxnay e569355022 Entropy/entropyConstants:
- get rid of etpRemoteFailures and maskingReasonsStorage global variables
Entropy/EquoInterface:
- apply entropyConstants changes
- new method get_masked_package_reason
Entropy/EntropyDatabaseInterface:
- hack to control idpackageValidatorCache size


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2782 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-14 12:42:09 +00:00
lxnay 2efba57138 Entropy/ServerInterface:
- in for cycles, unpack tuples directly
- append treeupdates info to binary packages too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2781 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-13 09:58:00 +00:00
lxnay 8f3e8d8996 Entropy/UGCClientInterface:
- login/do_login(): ability to force re-login
Entropy/Spritz:
- do not remove login credentials inside UGC preferences when clicking on Generate Login


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2779 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-12 17:50:50 +00:00
lxnay 3787dc6030 Entropy/EquoInterface:
- goodbye listAllAvailableBranches
Entropy/Spritz:
- remove branch switching button, it's a critical task that should be done only with brain ON


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2775 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-12 15:39:52 +00:00
lxnay 653247e292 svn ci -m
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2771 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-11 19:15:33 +00:00
lxnay d3b8fe9138 Entropy/EntropyDatabaseInterface:
- searchPackages: add just_id option to only pull idpackages in


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2770 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-11 19:14:32 +00:00
lxnay e46fd159e5 Entropy/EquoInterface:
- allow tagging entropy packages by setting ENTROPY_PROJECT_TAG inside the ebuild


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2767 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-11 10:47:39 +00:00
lxnay daae0887d6 Entropy/PackageInterface:
- new action implemented: source, useful to download packages source code
Entropy/Equo:
- add support for downloading source packages (equo source)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2765 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-10 23:47:00 +00:00
lxnay 31f5477066 Entropy/ServerInterface/ServerMirrorsInterface:
- block database upload and updates if there are uncommitted configuration files (reworked)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2760 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-10 12:20:10 +00:00
lxnay f054c3fbe4 Entropy/ServerInterface/ServerMirrorsInterface:
- block database upload if there are uncommitted configuration files


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2759 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-10 11:51:06 +00:00
lxnay 128e7a34a1 Entropy/UGCClientInterface:
- fix thread locking issues with calling the login method inside do_cmd


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