Commit graph

47 commits

Author SHA1 Message Date
Laurent Bachelier
ca04fb80ca Do not crash when repository is invalid
closes #1281
2013-08-03 13:05:14 +02:00
Laurent Bachelier
a6ad7e83ff Use newer form of catching exceptions
autopep8 -i --select=W602
Also some other minor deprecated syntax changes, like "while 1".
I did not commit the less obvious changes.
2013-07-27 15:16:16 +02:00
Romain Bignon
c0740e695d remove useless import of with_statement (we do not support anymore python2.5)
refs #806
2013-07-27 14:38:18 +02:00
Florent
fc3eefff09 Check if repositories are ok at the application runtime
Closes #1072
2013-03-22 18:01:32 +01:00
Florent
c6816e7444 Other comments 2013-03-20 14:50:09 +01:00
Florent
e56737a0cd Fix comment 2013-03-20 14:10:40 +01:00
Laurent Bachelier
c21d1f7925 Code clarity fixes
autopep8 -ir -j2 --select=E303,E125
Diff checked manually.
2013-03-16 00:52:43 +01:00
Laurent Bachelier
5b12a3c17e Force updating modules after upgrade
fixes #1066

Also, some small PEP8 fixes.
2013-03-09 15:14:46 +01:00
Romain Bignon
24cbeb47e5 major language fix (courtesy of Pascal Jakobs) 2012-11-10 14:37:45 +01:00
Romain Bignon
ba1879d501 use imp instead of __import__ 2012-05-07 14:03:21 +02:00
Florent
40de9b2d00 Fix indentation 2012-04-26 12:14:47 +02:00
Romain Bignon
b4154b5843 move part of update() to update_repositories() 2012-04-25 12:40:33 +02:00
Laurent Bachelier
c92ec6768b Fix keyring updates with latest openurl() change
You now have to call read() before doing another openurl().
As a bonus, the code is slightly shorter.
2012-04-15 20:31:56 +02:00
Laurent Bachelier
db6a912db5 repositories: Some systems only have gpgv2
fixes #837
2012-04-10 07:26:22 +02:00
Romain Bignon
9f86437ea1 do not check anymore if all CapBaseObject have docstrings 2012-03-26 14:41:24 +02:00
Laurent Bachelier
006e97a8be PEP8 style fixes and other small style fixes
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.

Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
  classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
  change to a comment something that wasn't really appropriate for a
  docstring.
* Unneeded first if condition in meteofrance
2012-03-14 04:51:46 +01:00
Romain Bignon
a93daefb4a improve messages 2012-02-16 00:01:19 +01:00
Romain Bignon
64c0698266 do not store 'None' in repository's config 2012-02-15 23:43:08 +01:00
Romain Bignon
d6534ae845 fix: retrieve third icons even if module is local 2012-02-11 16:19:22 +01:00
Romain Bignon
822bd8c59d use "weboob/VERSION" as user-agent to download files on repositories 2012-02-06 18:20:49 +01:00
Romain Bignon
d248196bb1 remove nsfw from example config 2012-02-03 23:52:02 +01:00
Romain Bignon
92c8873369 remove duplicate capabilities 2012-02-03 19:56:31 +01:00
Romain Bignon
59b4e78f65 add IProgress.error() to allow application to handle errors 2012-02-02 17:17:57 +01:00
Romain Bignon
33d7a8d466 fetch icons asynchronously (closes #756) 2012-02-02 15:36:36 +01:00
Romain Bignon
876535ff90 improve error message when a module isn't loadable 2012-02-01 23:07:25 +01:00
Romain Bignon
8c6fe811fe fix order of loaded repositories 2012-02-01 08:33:59 +01:00
Laurent Bachelier
8c50324dbf Don't remove the module if the signature is invalid
Remove it only just before extraction
2012-01-30 15:48:28 +01:00
Romain Bignon
97ef1f4e8c little improvements 2012-01-30 15:28:05 +01:00
Laurent Bachelier
307ccbc36c Display keyring version and hash
So that the user can easily check it is legit through another channel.
2012-01-30 11:10:10 +01:00
Laurent Bachelier
9da69d34bd Check the packages are valid at install 2012-01-30 01:21:01 +01:00
Laurent Bachelier
f3d962b19a Retrieve the keyring, and check its updates are valid 2012-01-30 01:20:57 +01:00
Laurent Bachelier
dd60e65174 Add support for generating a keyring 2012-01-29 16:50:23 +01:00
Laurent Bachelier
22fec7f9e6 Reinstall the module if its directory was deleted
Useful for stupid users (like me) who delete the directory.
2012-01-29 15:56:35 +01:00
Laurent Bachelier
764bfd18ec Precompile module directory at install 2012-01-29 15:56:35 +01:00
Laurent Bachelier
bcec326f35 Remove the whole module directory before updating
So that deleted/renamed files upstream are actually deleted.
Also check that the proper module directory was created after extraction.
2012-01-29 15:56:35 +01:00
Laurent Bachelier
863a32b96e Small enhancements to mtime handling
* Use directories mtime (so deleted or renamed files are taken into account)
* Set the tarfile mtime close to the version
2012-01-29 15:56:35 +01:00
Romain Bignon
65497fe91b calculate mtime of a module recursively 2012-01-28 14:15:30 +01:00
Romain Bignon
6f9a0215eb Revert "repositories/ is a config directory"
This reverts commit 70bdde2657.
2012-01-28 13:48:10 +01:00
Romain Bignon
70bdde2657 repositories/ is a config directory 2012-01-28 11:45:29 +01:00
Laurent Bachelier
a3b75fc2bb Use the correct location for sources.list
It was moved to the right directory, but Repositories tries to find it
in the datadir, not in the workdir.
2012-01-27 23:37:08 +01:00
Laurent Bachelier
adb7b95796 Fix to still use with keyword with Python 2.6
Also add imports for Python 2.6 usage.
2012-01-27 23:14:44 +01:00
Romain Bignon
3a3bbd377e support XDG Base Directory Specification (closes #765) 2012-01-27 17:34:08 +01:00
Romain Bignon
65169a8a8d fix compatibility with python2.6 2012-01-21 16:46:33 +01:00
Romain Bignon
c0655ad9ef update sources.list comments 2012-01-21 16:24:35 +01:00
Romain Bignon
b3c797978a automatically install missing modules referenced in ~/.weboob/backends 2012-01-19 10:48:26 +01:00
Romain Bignon
5083103d1a fix messages 2012-01-18 11:45:47 +01:00
Romain Bignon
14a7a1d362 support repositories to manage backends (closes #747) 2012-01-17 17:00:05 +01:00