Commit Graph

4725 Commits

Author SHA1 Message Date
lxnay 4629810b63 Entropy/urlFetcher:
- add a new error status "-4", meaning timeout error, move KeyboardInterrupt error code to -100
Entropy/EquoInterface:
- properly handle timeout errors without discarding data downloaded until then


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3061 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:46:52 +00:00
lxnay 68731000d2 Entropy/urlFetcher:
- download: when running in debug mode, print exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3060 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:17:37 +00:00
lxnay 183e33e996 Entropy/EquoInterface:
- fetch_file: when running in debug mode, print the exception occured in urlFetcher, if any


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3059 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:03:27 +00:00
lxnay 2349b21596 Entropy/UGCClientInterface:
- ease add_download_stats, removing branch and release_string parameters
Entropy/RepositorySocketClientCommands:
- ugc_do_download_stats: make it automatically retreiving branch and release string


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3058 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:56:49 +00:00
lxnay 9a82bb2cd8 Entropy/DistributionUGCInterface:
- get_entropy_release_strings_id: fix another typo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3057 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:37:26 +00:00
lxnay 3b81ecbacb Entropy/DistributionUGCInterface:
- fix do_download_stats, wrong variable reference


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3056 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:34:45 +00:00
lxnay 5f21d3d658 Entropy/DistributionUGCInterface:
- fix is_user_ip_available_in_entropy_distribution_usage SQL query


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3055 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:32:17 +00:00
lxnay 15b6f3e829 Entropy/TODO:
- update TODO
Entropy/urlFetcher:
- minor code style update
Entropy/EntropyCacher:
- rename Cacher to __cacher, making it a private method
- make critical variables private
Entropy/EquoInterface:
- get_unsatisfied_dependencies: improve speed, commenting out disabled code, add support for negative entropy revision on dependency strings, improve caching speed
- get_available_packages_chash: improve speed
- extract_pkg_metadata: kernel dependent packages now get the kernel dependency with revision == -1 (to force the installation of the very latest kernel revision)
Entropy/RepoInterface:
- handle_eapi3_database_sync: clear database cache before calling database_checksum
Entropy/DistributionUGCInterface:
- new tables entropy_distribution_usage, entropy_branches, entropy_release_strings, entropy_ip_locations, thus add support for Earth latitude, longitude mapping and detailed distribution usage stats
- add support for geo-tagging IP addresses (retrieving latitude, longitude)
- code style updates (long SQL queries on multiple rows)
- removed deprecated method do_download
- speed improvements of update_download
- a bunch of new methods, relevant one is do_download_stats (which is a more complex version of do_downloads)
Entropy/DistributionUGCCommands:
- removed support for ugc:do_download, deprecated
- added support for ugc:do_download_stats (see above)
Entropy/RepositorySocketClientCommands:
- added support for ugc_do_download_stats (see above)
- removed support for ugc_do_download (see above)
Entropy/UGCClientInterface:
- removed support for add_download (see above)
- added support for add_download_stats (see above)
Entropy/EntropyDatabaseInterface:
- database_checksum: cache result (through live_cache) to RAM
- atomMatch: filter out invalid atomRev values, < 0


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3054 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:05:03 +00:00
lxnay 8e61eee2f6 Entropy/urlFetcher:
- make internal methods private
- fix resume support when file is already completely downloaded


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3049 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-20 19:59:08 +00:00
lxnay 0c3ec7a16d Entropy/urlFetcher:
- fix resume support
Entropy/ut:
- trivial changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3048 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-20 19:48:12 +00:00
lxnay f1fe528c55 Entropy/entropyConstants:
- remove etpConst['packagestmpfile']
Entropy/entropyTools:
- getRandomNumber: if /dev/urandom is not available, fallback to random.randint
Entropy/*:
- when strictly required, if /dev/urandom is not available, fallback to random.randint


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3046 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-20 18:47:50 +00:00
lxnay 4865a100b8 Entropy/UT:
- fix urlFetcher test


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3045 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-19 16:15:20 +00:00
lxnay 20d5f806bf Entropy:
- add unit test dir


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3044 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-19 14:18:42 +00:00
lxnay 589b6408d5 Entropy/ServerInterface:
- package_injector: add manual dependencies notification
Entropy/EntropyDatabaseInterface:
- retrievePostDependencies, retrieveManualDependencies: use retrieveDependencies


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3040 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 14:00:47 +00:00
lxnay 87a711fe35 Entropy/TextInterface:
- inputBox: implemented support for list input items


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3039 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 13:46:33 +00:00
lxnay 0449b67878 Entropy/EquoInterface:
- _lookup_system_mask_repository_deps: tweak behaviour
- get_unsatisfied_dependencies: avoid issues with mapping types


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3038 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 11:59:40 +00:00
lxnay 8c555c7717 Entropy/EntropyDatabaseInterface:
- add support for manual dependencies on addPackage
- new handy method insertManualDependencies


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3037 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 01:01:09 +00:00
lxnay 683f43779e Entropy/entropyTools:
- new functions get_operator, catsplit, isvalidatom


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3036 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 00:57:41 +00:00
lxnay 9dbbb33eaa Entropy/EntropyDatabaseInterface:
- fix areIDPackagesAvailable method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3035 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-16 18:27:22 +00:00
lxnay 81e95deb43 Entropy/SystemSettings:
- SystemSettings is now a dict subclass



git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3034 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-16 18:19:03 +00:00
lxnay 79b700261f Entropy/EntropyDatabaseInterface:
- reintroduce previously removed methods:
  listIdPackagesInIdcategory
  listIdpackageDependencies


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3032 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-16 12:45:56 +00:00
lxnay 29517ae14b Entropy/rssFeed:
- fix AttributeError exception when xml doesn't have any description tag


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3030 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-16 11:22:46 +00:00
lxnay 06e606f4d3 Entropy/TODO:
- update TODO
Entropy/rssFeed:
- fix AttributeError exception when xml doesn't have any description tag


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3029 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-16 11:19:51 +00:00
lxnay 918cbdcc21 Entropy/EntropyDatabaseInterface:
- query style update
- new method retrieveManualDependencies, will be implemented the support of manually set dependencies soon
- some other misc updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3028 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-15 22:06:20 +00:00
lxnay d041277cec Entropy/EntropyCacher:
- automatically copy data object on push(), there is no need to do weird things by caller anymore
Entropy/*:
- update EntropyCacher.push calls
Entropy/EquoInterface:
- atomMatch: add extra cache validation layer to make sure to not return crap
- atomMatch: improve speed by moving open_db function definition outside atomMatch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3025 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-15 10:38:12 +00:00
lxnay d50eab4dd2 Entropy/EntropyDatabaseInterface:
- add atomMatchValidateCache on atomMatch which verifies if the cached is completely valid
- new method areIDPackagesAvailable
Entropy/RepoInterface:
- if EAPI3 sync fails (read: exceptions), remove the repository to avoid inconsistencies
- _construct_paths: use a dictionary-based index
Entropy/EquoInterface:
- validate EquoInterface.atomMatch results in generate_dependency_tree
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3023 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-15 00:04:47 +00:00
lxnay 998c692f7b Entropy/EntropyDatabaseInterface:
- remove several unused methods
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3018 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-11 20:45:26 +00:00
lxnay ec168afc1d Entropy/EquoInterface:
- rename some methods, we are entering in a final stabilization process
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3017 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-11 19:21:03 +00:00
lxnay 05adba8c37 Entropy/ServerInterface:
- add_packages_to_repository: did not respect repo parameter causing packages to be added to the wrong repository


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3016 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-11 14:21:12 +00:00
lxnay b7ae71fe74 Entropy/dumpTools:
- dumpobj: fix directory permissions setup


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3012 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 18:32:07 +00:00
lxnay cadf2ce5d4 Entropy/QAInterface:
- get_missing_rdepends: try to remove useless dependencies at the end

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3011 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 17:54:51 +00:00
lxnay b85bac4b97 Entropy/QAInterface:
- get_missing_rdepends: try to remove useless dependencies at the end

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3010 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 17:52:34 +00:00
lxnay 4ba8110172 Entropy/PackageInterface:
- __move_image_to_system: slightly improve speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3009 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 16:40:27 +00:00
lxnay 67e4a601e6 Entropy/PackageInterface:
- now package file moves to live system are atomic


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3008 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 16:39:23 +00:00
lxnay 88c514f51c Entropy/entropyConstants:
- split const_HandleException creating const_kill_threads
Entropy/entropyTools:
- kill_threads uses const_kill_threads
- introduce movefile(), from Portage, that will be used to atomically move files


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3007 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 16:15:19 +00:00
lxnay b9b08b78d4 Entropy/TODO:
- update TODO
Entropy/PackageInterface:
- implement config action, emerge --config hooks now implemented
Entropy/Equo:
- add new command equo config for handling packages needing a pkg_config (emerge --config) callback after install


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3006 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-09 00:03:14 +00:00
lxnay c7d1c42f67 Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3005 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:35:15 +00:00
lxnay 2614cccbc1 Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3004 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:23:48 +00:00
lxnay 3ade7accff Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3003 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:22:07 +00:00
lxnay 7aaa049baf Entropy/SystemSettings:
- fix get method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3002 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:32:12 +00:00
lxnay eeb55fe045 Entropy:
- since it seems to not make sense to have a connection test link to check against on 'equo update', let's remove it and see how users react


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3001 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:24:38 +00:00
lxnay 8c022b9e4b Entropy/SystemSettings:
- extend class dict functionalities


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3000 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:17:21 +00:00
lxnay 07c95a18b2 Entropy/ServerMirrorsInterface:
- get_files_to_sync: fix database packages.db.system_mask file handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2999 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:02:42 +00:00
lxnay cb509f5d42 Entropy/TODO:
- update TODO
Entropy/PackageInterface:
- call preinstall step before preremove and postremove on install actions
Entropy/client:
- move repositories.conf to repositories.conf.example
Entropy:
- use /usr/bin/python2 instead of /usr/bin/python as interpreter to avoid Python 3 issues


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2996 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 12:17:27 +00:00
lxnay 649c613a55 Entropy/EntropyCacher:
- fix a critical issue that could cause random lockups on sync() if wait is True


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2987 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 14:29:38 +00:00
lxnay 97081b2624 Entropy/EntropyCacher:
- make possible to start/stop the thing
Entropy/EquoInterface:
- generate_cache: stop Cacher before purging


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2986 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 13:23:41 +00:00
lxnay 6d6500c24e Entropy/Equo/world:
- small fix, when upgrading branch, do not call RepoInterface.sync if an exception occured
Entropy/RepoInterface/EAPI3:
- handle get_eapi3_local_database correctly, can return None
Entropy/entropyConstants:
- new global method const_set_chmod


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2985 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 12:49:38 +00:00
lxnay c76718436d Entropy:
- properly get exception traceback and store where needed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2984 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 12:00:48 +00:00
lxnay 1528342dfb Entropy/EquoInterface:
- __remove_content_from_system(): when spawning _handle_config_protect, always encode tofile from utf-8


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2972 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 14:53:08 +00:00
lxnay 70285d0459 Entropy/EquoInterface:
- _lookup_inverse_dependencies: ignore broken client db entries


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2970 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 14:11:58 +00:00