Commit Graph

2049 Commits

Author SHA1 Message Date
Fabio Erculiani fb5e9e981d entropy.db.Schema: remove get_destroy_all
entropy.db.initializeDatabase: use listAllTables instead of
schema.get_destroy_all
2009-03-30 13:48:47 +02:00
Fabio Erculiani 19937466cd "equo source", new option --savehere
user can choose to download sources into CWD instead of entropy tmp
directory
2009-03-30 13:23:15 +02:00
Fabio Erculiani 159113acd1 entropy.db: new method listAllTables
new method that returns a list of available database tables
2009-03-30 12:44:28 +02:00
Fabio Erculiani cf24734a43 entropy.db.Schema: drop never used tables 2009-03-30 12:43:46 +02:00
Fabio Erculiani 509f240a8e entropy.transceivers.urlFetcher: when file is already downloaded,
don't pass False to __close()
2009-03-30 12:32:14 +02:00
Fabio Erculiani a27aec6742 entropy.transceivers.urlFetcher: close local file only when needed 2009-03-29 23:42:34 +02:00
Fabio Erculiani 93600a6b34 entropy.transceivers.urlFetcher: always close file objects on disk
when reusing urlFetcher class more than once, make sure we close
every opened local file
2009-03-29 21:55:20 +02:00
Fabio Erculiani 5df62a0216 entropy.transceivers.urlFetcher: remove file on error
It happened that if a file is not available on the provided URL,
the local one was created anyway containing no data. Thus verify
if it was already available, if not, remove it on errors.
2009-03-29 21:49:24 +02:00
Fabio Erculiani ee6606df81 entropy.server.interfaces.mirrors: sync_databases (improvement)
consider missing dependencies critical only for the currently selected
repository
2009-03-29 20:37:41 +02:00
Fabio Erculiani d620f9096b entropy.server.interfaces.main: deps_tester new argument (feature)
add the ability to test dependencies only on a specified repository.
2009-03-29 20:36:17 +02:00
Fabio Erculiani 001d0088e3 entropy.client.interfaces.dep: dependencies handling update
dependencies_test method now uses the new exclude_deptypes argument
of entropy.db.LocalRepository.retrieveDependencies

generate_depends_tree method now uses the new exclude_deptypes argument
of entropy.db.LocalRepository.retrieveDepends
2009-03-29 19:53:06 +02:00
Fabio Erculiani e30055bd08 entropy.db.LocalRepository.retrieveDependencies: new argument (feature)
retrieveDependencies features a new argument "exclude_deptypes", useful
to filter out unwanted dependency types from the results.
It is used by entropy.client.interfaces.dep.dependencies_test to ignore
PDEPENDs
2009-03-29 19:49:24 +02:00
Fabio Erculiani 67838cd5c7 entropy.db: new searchDepends argument (feature)
Specific dependency types can now be excluded lowlevel
2009-03-29 15:54:14 +02:00
Fabio Erculiani 2fffabc9f7 entropy.client.interfaces.dep: minor code style update 2009-03-29 15:53:10 +02:00
Fabio Erculiani 01e7cda6a8 code style updates for entropy.db 2009-03-28 20:43:44 +01:00
Fabio Erculiani c5a1035859 use saner approach for Live system 2009-03-24 21:11:55 +01:00
Fabio Erculiani ed239b2f46 - update Entropy TODO
- entropy.db: always run SQL table updates even on live
2009-03-24 21:09:41 +01:00
Fabio Erculiani fd457af5c7 started to fix code style in entropy.db, the Entropy Repository interface. 2009-03-23 19:06:12 +01:00
lxnay 192642d5c7 Entropy/TODO:
- update TODO
Entropy/Client/Interfaces/Repository:
- fix _config_updates_make_profile


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3218 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-23 01:46:47 +00:00
lxnay 2d348ef4bd Entropy/Client/Interfaces:
- fix typo occured when refactoring selfDbconn is self.clientDbconn


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3215 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-22 18:06:11 +00:00
lxnay d2cf355753 Entropy/exceptions:
- remove SystemError and NotImplementedError exceptions
- pylint test passed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3211 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-20 12:26:01 +00:00
lxnay 379fd59ac3 Entropy/dump:
- slightly change API
- add missing docstrings
- pylint check passed
Entropy/*:
- fix API changed entropy.dump function calls


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3210 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-20 11:42:43 +00:00
lxnay 8b0a563e94 Entropy/db:
- add new table automergefiles, to handle untouched config files automerges and autoremoval
- add support methods for automergefiles tables
Entropy/Client/Interfaces:
- add support for configuration files automerge and autoremove, if user did not modify a config file, it will be automerged or autoremoved


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3209 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 18:07:22 +00:00
lxnay 7fa3534a4d Entropy/misc/TimeScheduled:
- __do_delay: also check if float has been shut down too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3208 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 18:05:35 +00:00
lxnay f4c26812b9 Entropy/const:
- update constants function API
Entropy/Spritz:
- use new entropy.const API


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3207 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 11:09:33 +00:00
lxnay 88ab3800b5 Entropy/Client/Interfaces:
- remove self.Client hack
- update current dependencies_test output every 150 packages
- update constants methods



git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3206 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 11:07:41 +00:00
lxnay e8e8e5645b Entropy/Server/Interfaces/main:
- update current libraries_test output every 150 packages


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3205 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 11:06:03 +00:00
lxnay 77aebcc8c1 Entropy/Transceivers/FtpInterface:
- delete_file, handle FTP 550 errors


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3204 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 11:04:12 +00:00
lxnay 7615edbbca Entropy/tools:
- fix regression on result returned from compare_versions

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3202 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-17 22:46:45 +00:00
lxnay 2589e32f53 Entropy/const:
- function renaming
- code refactoring
Entropy/Spritz:
- use new entropy.const functions
Entropy/Client/Interface/Methods:
- use new entropy.const functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3201 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-17 22:28:43 +00:00
lxnay 478b5397a4 Entropy/const:
- some syntax layout updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3200 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-17 09:18:19 +00:00
lxnay 2827b21133 Entropy/i18n:
- update COPYRIGHT header


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3199 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-16 19:44:20 +00:00
lxnay a198077f8b Entropy/bash based trigger executor:
- move from libraries to misc


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3198 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-16 19:43:49 +00:00
lxnay 8408277697 Entropy/db:
- __handle_found_ids_match: don't raise exception, just warn the user and step over, when an invalid dep string is found


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3197 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-16 19:42:56 +00:00
lxnay 1128f6a079 Entropy:
- add preliminary python lzma library


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3196 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-16 11:02:31 +00:00
lxnay e2a6451c29 Entropy/Cache:
- add docstrings
- code style updates
- pylint test passed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3194 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-16 10:03:45 +00:00
lxnay e16748511a Entropy/i18n lib:
- only catch ImportError and OSError exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3193 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 20:06:36 +00:00
lxnay cae364a427 Entropy/Core/SystemSettings:
- reset all the metadata when clear is called
- make most of the properties private
- add docstring
- refactor some code to help readability and score with pylint
Entropy/Client/Interfaces/Methods:
- unmask_match_generic, mask_match_generic, don't call internal SystemSettings properties directly but use new available methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3192 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 20:05:55 +00:00
lxnay 9a4d0f971a Entropy/db/LocalRepository:
- __handle_found_ids_match: remove atom parameter, not needed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3191 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 20:03:39 +00:00
lxnay 3136c25db3 Entropy/*:
- use save_repository_settings instead of saveRepositorySettings function (deprecated)
- use _save_repositories_content instead of _saveRepositoriesContent function (deprecated)
- use write_parameter_to_file instead of writeParameterToFile function (deprecated)
- use write_new_branch instead of writeNewBranch function (deprecated)
- use is_entropy_package_file instead of isEntropyTbz2 function (deprecated)
- use collect_linker_paths instead of collectLinkerPaths function (deprecated)
- use collect_paths instead of collectPaths function (deprecated)
- use list_to_utf8 instead of listToUtf8 function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3188 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:49:53 +00:00
lxnay 97590a6cad Entropy/*:
- use spawn_function instead of spawnFunction function (deprecated)
- use uncompress_tar_bz2 instead of uncompressTarBz2 function (deprecated)
- use bytes_into_human instead of bytesIntoHuman function (deprecated)
- use hide_ftp_password instead of hideFTPpassword function (deprecated)
- use get_file_unix_mtime instead of getFileUnixMtime function (deprecated)
- use get_random_temp_file instead of getRandomTempFile function (deprecated)
- use get_file_timestamp instead of getFileTimeStamp function (deprecated)
- use convert_unix_time_to_human_time instead of convertUnixTimeToHumanTime function (deprecated)
- use get_current_unix_time instead of getCurrentUnixTime function (deprecated)
- use get_year instead of getYear function (deprecated)
- use convert_seconds_to_fancy_output instead of convertSecondsToFancyOutput function (deprecated)
- use get_repository_settings instead of getRepositorySettings function (deprecated)
- use write_ordered_repositories_entries instead of writeOrderedRepositoriesEntries function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3187 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:45:55 +00:00
lxnay 90967de156 Entropy/*:
- use compare_versions instead of compareVersions function (deprecated)
- use entropy_compare_versions instead of entropyCompareVersions function (deprecated)
- use get_newer_version instead of getNewerVersion function (deprecated)
- use get_entropy_newer_version instead of getEntropyNewerVersion function (deprecated)
- use filter_duplicated_entries instead of filterDuplicatedEntries function (deprecated)
- use extract_ftp_host_from_uri instead of extractFTPHostFromUri function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3186 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:37:29 +00:00
lxnay 6956cfdffc Entropy/*:
- use extract_xpak instead of extractXpak function (deprecated)
- use read_xpak instead of read_xpak function (deprecated)

- use compare_md5 instead of compareMd5 function (deprecated)
- use sort_update_files instead of sortUpdateFiles function (deprecated)
- use allocate_masked_file instead of allocateMaskedFile function (deprecated)
- use extract_elog instead of extractElog function (deprecated)
- use remove_package_operators instead of removePackageOperators (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3185 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:04:28 +00:00
lxnay 0765fb8b1f Entropy/*:
- use extract_xpak instead of extractXpak function (deprecated)
- use read_xpak instead of read_xpak function (deprecated)

- use backup_client_repository instead of backupClientDatabase (deprecated)
- use unpack_bzip2 instead of unpackBzip2 (deprecated)
- use unpack_gzip instead of unpackGzip (deprecated)
- use unpack_xpak instead of unpackXpak (deprecated)
- use suck_xpak instead of suckXpak (deprecated)
- use append_xpak instead of appendXpak (deprecated)
- use aggregate_edb instead of aggregateEdb (deprecated)
- use extract_edb instead of extractEdb (deprecated)
- use remove_edb instead of removeEdb (deprecated)
- use create_hash_file instead of createHashFile (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3184 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:27:14 +00:00
lxnay 07d9fe86bf Entropy/*:
- use print_exception instead of printException function (deprecated)
- use application_lock_check instead of applicationLockCheck function (deprecated)
- use get_random_number instead of getRandomNumber function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3183 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:19:13 +00:00
lxnay fac809a8d5 Entropy/*:
- use print_traceback instead of printTraceback function (deprecated)
- use get_traceback instead of getTraceback function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3182 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:16:09 +00:00
lxnay 997007d036 Entropy/Tools:
- rename every camel case function inside tools
- keep API for backward compatibility
- improve performance of package version sorting functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3178 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:04:13 +00:00
lxnay 497cc88b4b Entropy/db:
- remove some unused stuff
- do not use c as variable name


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3177 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 23:06:20 +00:00
lxnay 977d2612e6 Entropy/Client/Interfaces/Package:
- call Trigger.run() only when there are triggers to run


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3176 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 23:05:33 +00:00
lxnay db9a20cfd4 Entropy/Client/Interfaces/Trigger:
- fix OpenGL setup when using NVIDIA or ATI libGL


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3175 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 23:04:45 +00:00