Commit Graph

1892 Commits

Author SHA1 Message Date
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 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 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 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
lxnay 4d752bc344 EquoInterface/Portage hooks:
- we might run into a system with broken libbz2.so*, since Entropy can even run without it, in case of this happens during Portage pkg_* hooks, we can happily ignore and step over


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2562 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 10:09:53 +00:00
lxnay 9488f70dbb EquoInterface/get_meant_package():
- ignore strings too long


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2561 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 10:05:57 +00:00
lxnay 438aa6c9c7 Entropy/EmailSender:
- add support for specifying SMTP host and port
PackageInterface:
- check if download path is available on the db when requesting a fetch action, if not, warn the user and step over


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2560 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 09:58:30 +00:00
lxnay 935f5903fa Entropy/entropyTools:
- add helper functions is_valid_ascii() and is_valid_unicode()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2559 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 09:57:00 +00:00
lxnay 8455ece1bb Entropy/phpBB3AuthInterface:
- add new method activate_user(), useful to activate users after the registration


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2555 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 17:52:22 +00:00
lxnay 19a07d0114 Entropy/phpBB3AuthInterface:
- make user activation requirement on register_user() optional
Entropy/MailSender:
- new class to send basic and complex emails


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2554 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 17:21:48 +00:00
lxnay 105b0221c3 Entropy/phpBB3AuthInterface:
- handle utf8 strings correctly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2553 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 16:00:26 +00:00
lxnay 18566bdfbd Entropy/phpBB3AuthInterface:
- handle utf8 strings correctly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2552 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:55:17 +00:00
lxnay f4942aee7d Entropy/phpBB3AuthInterface:
- handle utf8 strings correctly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2551 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:52:50 +00:00
lxnay 4c59e26e02 Entropy/phpBB3AuthInterface:
- handle utf8 strings correctly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2550 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:51:27 +00:00
lxnay 3bcfdf9d81 Entropy/phpBB3AuthInterface:
- handle utf8 strings correctly

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2549 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:48:19 +00:00
lxnay 4af30bcd1a Entropy/phpBB3AuthInterface:
- fix is_username_allowed()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2548 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:23:10 +00:00
lxnay d01a9846d5 Entropy/phpBB3AuthInterface:
- fix username and email validation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2547 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:20:46 +00:00
lxnay 949d931db3 Entropy/phpBB3AuthInterface:
fix __register()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2546 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 15:04:21 +00:00
lxnay 7b0e070983 Entropy/phpBB3AuthInterface:
- fix validate_username_regex()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2545 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 14:59:25 +00:00
lxnay 088c92eb56 Entropy/phpBB3AuthInterface:
- implement user registration against phpbb3


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2544 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 14:44:18 +00:00
lxnay ab4d586b9f Entropy/phpBB3AuthInterface:
- add valid password range
- add valid username range
Entropy/EAPI3/Client:
- do not crash if repository, arch or product are None (while converting to coloured output) in convert_stream_to_object()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2543 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-23 12:01:48 +00:00
lxnay 653fc2f2d2 Entropy/rssFeed:
- also get dc:creator from rss


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2540 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-20 15:11:28 +00:00
lxnay 9d6ae17b31 Entropy/EntropyDatabaseInterface:
- improve SQL on cleanup* methods
- atomMatch(): fix strippedAtom referencing before assignment


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2538 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-19 22:20:54 +00:00
lxnay 092a78c7ab Entropy/EntropyDatabaseInterface:
- fix atomMatch when atom string is badly formatted at its root, avoid crasing at any cost and return the proper data structure every time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2537 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-18 21:56:06 +00:00
lxnay bee7f77744 Entropy/rssFeed:
- avoid to crash when editor and copyright tags are not available


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2536 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-18 16:37:52 +00:00
lxnay 2431767729 Entropy/rssFeed:
- avoid to crash when language tag is not available


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2535 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-18 16:36:43 +00:00
lxnay dac781a6fa Entropy/DistributionUGCInterface:
- some misc fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2533 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-17 08:49:18 +00:00
lxnay 52ba3b2a4c Entropy/DistributionUGCInterface:
- improve query detection by checking if query item is true (!=0 and not None)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2532 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-16 17:20:53 +00:00
lxnay cdda679a1a Entropy/RemoteDbSkelInterface:
- move _check_needed_reconnect() here so every subclass can benefit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2531 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-16 17:17:14 +00:00
lxnay 46e715a6e3 Entropy/DistributionUGCInterface:
- add distribution statistics retrieval method get_distribution_stats()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2530 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-16 16:00:22 +00:00
lxnay d04c628bdd Entropy/DistributionUGCInterface:
- add score to get_user_stats()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2529 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-16 15:18:14 +00:00
lxnay 9061ce3085 Entropy/TODO:
- update TODO
Entropy/Equo:
- fix database resurrect when database is clearly fscked up
Entropy/DistributionUGCInterface:
- add a lot of methods to retrieve user statistics


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2528 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-16 14:24:40 +00:00
lxnay 1dc14f2dca Entropy/EquoInterface:
- implement safe mode feature -> EquoInterface.safe_mode status integer, first function to use it is EquoInterface.openClientDatabase()
- openClientDatabase() make possible to start an EquoInterface instance with a corrupted/non-existant installed packages database (safe mode) which can be detected by client interfaces (Equo/Spritz)
Entropy/EntropyDatabaseInterface:
- improve branch support (and speed) for client database (installed packages db)
Entropy/rssFeed:
- make it a generic RSS handling class
Entropy/ServerInterface:
- make changes to rssFeed instances to reflect the change above
Entropy/Repository Manager:
- add support for notice boards handling
Entropy/ServerInterface:
- add support for notice boards handling
Entropy/EquoInterface:
- add support for notice boards


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2521 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-13 17:14:06 +00:00
lxnay 76d8d9596c Entropy/TODO:
- update TODO
Entropy/Equo:
- add installed packages database backup/restore tools
Entropy/EquoInterface:
- add backup/restore database helper functions
Entropy/EntropyDatabaseInterface:
- fix getIDPackageFromDownload()
Entropy/entropyTools:
- add compress_file() function (uncompress_file() already present)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2518 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-11 21:11:07 +00:00
lxnay 8e7a4568f1 Entropy/EntropyDatabaseInterface:
- fix getIDPackage()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2517 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-11 16:56:51 +00:00
lxnay a21b458a13 Entropy/EntropyDatabaseInterface:
- improve branches handling on the client (installed packages) database
- remove some obsolete functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2516 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-11 16:54:47 +00:00
lxnay 9347bd4f24 Entropy/entropyTools:
- spawnFunction(): add the ability to provide a callback function to read the child pid id
Entropy/Repository Manager:
- make possible to stop any queued command that calls spawnFunction (85% of them)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2515 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-10 20:22:16 +00:00
lxnay b4e6609cf4 Entropy/FtpInterface:
- improve FTP uri parser, move to entropyTools
- fix issues when no directory path is specified


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2514 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-10 19:24:02 +00:00
lxnay 222ff8f01d tagging entropy 0.22.1
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2513 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-10 11:41:37 +00:00
lxnay 6a55a86f56 Entropy/ServerInterface:
- fix indentation into migrate_repository_databases_to_new_branched_path()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2512 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-10 11:27:29 +00:00
lxnay f33367879d Entropy/EntropyDatabaseInterface:
- revert some changes doing more harm than good


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2511 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-10 11:18:54 +00:00
lxnay 5ca8ba6f29 Entropy/EntropyDatabaseInterface:
- listAllCategories(): add order_by parameter


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2510 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-09 18:52:13 +00:00