| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
X-Gentoo-Bug: 582154
X-Gentoo-Bug-URL: https://bugs.gentoo.org/582154
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
reposconf.py: Adds rebuild __init__ parameter to fix rebuild
functionality
updater.py: Sets rebuild parameter for repos.conf ConfigHandler class
|
| |
|
|
|
|
|
| |
As _fetch_file() is for fetching internal files and does not use ssl-fetch
it should not have climit as a parameter.
|
|
|
|
|
| |
Following up on the updating of ssl-fetch's API update in commit
5ffbc7ae to make use of climit parameter.
|
| |
|
|
|
|
|
| |
If the database back-end fails to be read then layman will properly
report it and exit without causing an ugly traceback.
|
| |
|
|
|
|
|
| |
This only showed up when the module's target name (filename) was not the
same as the modules initialization name.
|
| |
|
|
|
|
|
|
| |
Previously the set_db_type function would be passed the old installed
database name instead of the new one. This would lead to setting
the "installed" variable in the layman config to an incorrect one.
|
|
|
|
| |
backup naming
|
|
|
|
|
| |
Shamelessly hiding the fact that I'm also ammending the lack of
self.db_type use in the remove() function.
|
| |
|
|
|
|
|
|
| |
Instead of showing the user the error and raising an exception, an
alternative method of dying after hitting the error has been
implemented.
|
|
|
|
|
|
| |
This internal function centralizes the functionality of getting the
database module controller while also adding in checks to gracefully
handle invalid module names.
|
| |
|
|
|
|
| |
Signed-off-by: Devan Franchini <twitch153@gentoo.org>
|
| |
|
| |
|
|
|
|
| |
References git issue #30.
|
|
|
|
|
|
|
|
| |
Prior to this commit the overlay would not set the owner info if the
contact attribute was found, breaking backwards compatibility. To allow
for this backwards compatibility while maintaining multiple owner
support layman will be defaulting to the "contact" attribute if it is
present in any XML overlays.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The api function get_all_info() is being deprecated as it was much
slower than the get_info_str() function and was no longer used in
layman's code. The only instance found making use of it was older test
code which has been changed to also use the get_info_str() function.
external.py: Deprecates the get_all_info() function and adds multiple
owner testing compatibility.
api.py: Removes the get_all_info() function.
cli.py: Removes commented out use of get_all_info() function.
global-overlays.json: Changes structure of 'owner' attribute to reflect
changes for multiple owner support.
|
|
|
|
|
|
| |
The previous method still made use of owner_name and owner_email to see
if the two were equal while it should've been checking for the "owners"
overlay attribute.
|
|
|
|
|
|
| |
These modifications remove a lot of duplicated prompts that were created
when trying to prompt the user for an item that could be of more than
one value.
|
| |
|
|
|
|
|
|
| |
As this function exists with the API consumer in mind the function
was well overdue for getting it the result keys updated to reflect
all the ongoing changes in layman's API.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This parameter has been added in order to obtain proper
parallelization support for layman sqlite databases. With this
additional parameter it prompts the sqlite db module's write function to
simply return when removing an overlay, preventing it from re-adding any
database entires and causing oddness, run-time errors, or other unwanted
badness.
|
|
|
|
|
|
| |
Due to the fact that including the owner name isn't necessary layman
needed to modify the way it gathered owner information to prevent
run-time errors.
|
| |
|
|
|
|
|
|
| |
sqlite_db.py: Also changes the way in which feeds are gathered in
read_db(), this shows the nature of feeds being an unrequired attribute
of the overlay.
|
| |
|
| |
|
|
|
|
|
|
| |
constants.py: Adds sqlite to list of supported database modules.
setup.py: Adds db_modules.sqlite_db.sqlite_db to list of installable
modules.
|
| |
|
| |
|
|
|
|
| |
updater.py: Adds proper line spacing for database migration output
|
|
|
|
|
|
|
|
|
| |
In order to preserve the config file set up of the layman config
file the set_db_type() function has been modified to not use
configparser as it doesn't preserve comments. Changes have also
been made in case the database file ends with the old extension,
so the backup name will end in ".bak" as opposed to the database's
file type.
|
| |
|
| |
|
|
|
|
|
|
|
| |
To avoid namespace collisions in py2.7 the database modules needed
to have "_db" appended to their name. In order to avoid having this
ugliness in the user's config file and elsewhere in layman's code
the DbBase class simply adds the "_db" portion of the name itself.
|
| |
|
|
|
|
|
| |
As the next release will include some noticeable changes an increment
of the second version number in layman was necessary.
|
| |
|