Commit Graph

2664 Commits

Author SHA1 Message Date
lxnay 6387bb737b Entropy/PortageInterface:
- calculate_dependencies(): handle EAPI2 IUSE items in a better way, although no valid documentation seems to be available at this time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2617 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 19:55:21 +00:00
lxnay fdf957c4ae Entropy/DistributionUGCInterface:
- improve get_user_alldocs(): order by pkgkey


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2615 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:31:23 +00:00
lxnay 224b323775 Entropy/DistributionUGCInterface:
- improve get_user_alldocs() SQL


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2614 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:27:13 +00:00
lxnay 36e59f5ee7 Entropy/DistributionUGCInterface:
- get_user_alldocs(): method to retrieve all the documents belonging to a certain userid
- get_user_generic_doctype(): less code duplication, that is


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2613 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:14:01 +00:00
lxnay f903dc9306 Entropy/DistributionUGCInterface:
- get_user_score_ranking(): fix sql query
- get_user_votes_count(): return int, not float


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2612 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 17:34:42 +00:00
lxnay 239276ea24 Entropy/DistributionUGCInterface:
- get_user_score_ranking(): execute_query was wrong


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2611 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 17:05:47 +00:00
lxnay 9fe8678b4b Entropy/DistributionUGCInterface:
- get_user_score_ranking(): new method, returns the actual user ranking based on Entropy score
- get_users_scored_count(): new method, returns the number of ranked users


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2610 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 16:58:00 +00:00
lxnay 21f0ee4a53 Entropy/DistributionUGCInterface:
- get_user_stats(): extend method adding more info
- get_user_generic_doctype_count(): generic function, less code duplication around in the class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2609 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 16:37:04 +00:00
lxnay 0b08ea2a3b Entropy/DistributionUGCInterface:
- use hashlib instead of md5 module


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2608 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 15:55:41 +00:00
lxnay 42803a2aac Entropy/DistributionUGCInterface:
- make score weight configurable


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2607 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 12:44:02 +00:00
lxnay 5e738a6a24 Entropy/Equo:
- fix description search


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2606 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 12:02:08 +00:00
lxnay c553b87c4b Entropy/DistributionUGCInterface:
- fix sql query for get_user_score()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2605 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 09:26:48 +00:00
lxnay c680b56eea Entropy/DistributionUGCInterface:
- implement through SQL the user score feature, users will gain points for submitting UGC


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2604 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 09:25:00 +00:00
lxnay 16a76d2dc5 tagging entropy 0.23.2
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2603 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:30:24 +00:00
lxnay aa7eebdf2a Entropy:
- we are now >=Python2.5 only, sorry 2.4


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2602 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:23:00 +00:00
lxnay 35fd724919 Entropy/DistributionUGCInterface:
- make scan_for_viruses() redirect stdout to /dev/null, we really don't need it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2601 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:14:43 +00:00
lxnay 71d8f2c3ed Entropy/DistributionUGCInterface:
insert_youtube_video(): always set sabayon as keyword


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2600 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:07:30 +00:00
lxnay fbe14ed2ea Entropy/DistributionUGCInterface:
insert_youtube_video(): if no keywords are specified, make the keyword argument of gdata.media = None


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2599 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:03:11 +00:00
lxnay 04ff44b3e5 Entropy/DistributionUGCInterface:
- get_iddoctype() returns int type
- youtube video upload: reduce title length


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2598 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 20:56:55 +00:00
lxnay e07223fdfb Entropy/DistributionUGCInterface:
- add get_iddoctype(): function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2597 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 18:32:28 +00:00
lxnay b01b1f4d31 Entropy/misc:
- general code optimization


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2596 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 17:53:02 +00:00
lxnay 7f11901c25 Entropy/EmailSender:
- port to >=python-2.5


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2595 cd1c1023-2f26-0410-ae45-c471fc1f0318
0.23.8 0.23.7 0.23.6 0.23.5 0.23.4 0.23.3 0.23.2
2008-10-30 16:39:27 +00:00
lxnay 8663f2fd82 Entropy/EmailSender:
- add smtp auth support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2594 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-30 10:50:45 +00:00
lxnay 8224842bbb Entropy/RepoInterface:
- run treeupdates after repositories sync


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2593 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-30 09:11:26 +00:00
lxnay 2707a0282e Entropy/socket interfaces:
- it can happen that some socket interface flavours don't have the settimeout attribue, check that before it's too late ghgh


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2592 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 19:10:08 +00:00
lxnay 989e49177f Entropy/DistributionUGCInterface:
- optimize several sql queries and python functions
Entropy/EntropyDatabaseInterface:
- addPackage(): when providing an idpackage, run removePackage() to ensure no collisions
Entropy/PackageInterface:
- when a package fails to unpack, try to download it again and start over
- when running fetch_step(), check if returns 0, otherwise, give up


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2591 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 16:19:06 +00:00
lxnay 9f5b276605 Entropy/Spritz:
- adding some debug info for the crowd
- fix a small issue with fetching ADS


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2590 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 16:16:49 +00:00
lxnay 3583fa67d6 Entropy/entropyTools:
- uncompressTarBz2(): catch EOFError exceptions and return -1
Entropy/PackageInterface:
- __unpack_package(): when running fetch_step, check if returns 0
- try to unpack the package 3 times before giving up, if it fails, try to redownload it again


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2589 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 13:05:41 +00:00
lxnay b8139708e8 Entropy/UGC Client Interface:
- get_downloads(), get_docs(), add_vote(): - check if the returned data is a valid tuple before splitting it
Entropy/EquoInterface:
- extend get_meant_packages() capabilities to run off any database and branch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2588 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 12:31:45 +00:00
lxnay 25eb415ec3 Entropy/Spritz:
- if --debug make UGC client interface verbose
- fix stars column background color


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2587 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-29 10:26:21 +00:00
lxnay 5dcac6f53d Entropy/DistributionUGCInterface:
- insert_keywords(): improve query


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2586 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 21:47:54 +00:00
lxnay 393d9d11b5 Entropy/DistributionUGCInterface:
- Youtube video upload: upload file using the original filename


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2585 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 21:30:48 +00:00
lxnay ef1f14f6a8 Entropy/DistributionUGCInterface:
- escape key


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2584 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 14:20:21 +00:00
lxnay 8855497e73 Entropy/DistributionUGCInterface:
- get_ugc_vote(),get_ugc_allvotes(): improve mysql results parsing


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2583 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 11:44:39 +00:00
lxnay 2b93605e21 Entropy/DistributionUGCInterface:
- get_ugc_vote(): fix typo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2582 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 11:32:59 +00:00
lxnay b940dfa66f Entropy/EntropyDatabaseInterface:
- listIdPackagesInIdcategory(): add order_by parameter
- contentDiff(): improve reliability
Entropy/DistributionUGCInterface:
- get_ugc_vote(): improve speed
- before calling tostring() method to mysql objects, check if it's necessary
Entropy/EquoInterface:
- print traceback in the case that clientdb got corrupted and we're running in safe mode


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2581 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 11:31:57 +00:00
lxnay 2a7d1d6d4e Equo/text_rescue:
- when resurrecting db, verify that atom from clientdb has been retrieved correctly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2580 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 11:29:18 +00:00
lxnay c57e70f332 Entropy/entropyTools:
- getRandomNumber(): use os.urandom()
- dep_getkey(): check if input param is valid


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2579 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-28 11:28:17 +00:00
lxnay da1b5d9692 Entropy/EntropyDatabaseInterface:
- atomMatch(): run sub functions only if required


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2578 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-27 07:49:24 +00:00
lxnay d8a3a6941a Entropy/i18n:
- update translations template
- update Dutch translation

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2576 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-26 15:29:06 +00:00
lxnay c7c8f2c2e1 Entropy/entropyConstants:
etpdatabasemissingdepswlfile -> etpdatabasemissingdepsblfile


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2575 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-26 15:22:05 +00:00
lxnay a2e38f0bbc Entropy/EquoInterface:
- atomMatch(): make it more modular


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2574 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-26 15:16:57 +00:00
lxnay ff39cd9514 Entropy/ServerInterface/QAInterface:
- make possible to blacklist missing library dependencies at runtime and through packages.db.missing_deps_whitelist file inside the repository db directory


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2573 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-26 14:45:03 +00:00
lxnay cb623aeba4 Entropy/EntropyDatabaseInterface:
- searchPackage(): add order by parameter
Entropy/EquoInterface:
- get_branch_from_download_relative_uri(), move from ServerInterface to here
- fetch_file_on_mirrors() add branch that needs to be passed to fetch_file() to store the download in the right directory


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2572 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-25 22:31:44 +00:00
lxnay 5811338db9 Entropy/EquoInterface:
- match_checksum(): fix odd behaviour causing redowloads to fail if checksum is not matched the first time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2571 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 23:19:09 +00:00
lxnay dc6a195ecc Entropy/EntropyDatabaseInterface:
- doTreeupdatesSpmCleanup(): no portage dir? no portage party!


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2570 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 23:09:16 +00:00
lxnay 9ec2569cf3 Entropy/ServerInterface:
- verify_remote_packages(): effectively check md5sum before jumping up and down


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2569 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 22:32:54 +00:00
lxnay 78151e9818 Entropy/EntropyDatabaseInterface:
- split atomMatch method
- split idpackageValidator method
Entropy/EquoInterface:
- atomMatch(): code cleanup


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2568 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 15:51:47 +00:00
lxnay 7018182761 Entropy/Spritz:
- make installing external packages impossible when Spritz is busy
- remove doGtkEvents call every time busyCursor() and normalCursor() is spawned


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2566 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 10:58:23 +00:00
lxnay 0dfb2b3c1d Entropy/ServerInterface:
- cosmetical change


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2565 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 10:57:20 +00:00