| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Adds uWSGI server support
|
| | |
|
| |
| |
| |
| |
| | |
X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
|
| |
| |
| |
| |
| | |
X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
|
| |
| |
| |
| |
| | |
X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
|
| |
| |
| |
| |
| | |
X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
|
|/
|
|
|
| |
X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
|
|
|
|
|
|
|
| |
X-Gentoo-Bug: 561798
X-Gentoo-Bug-URL: https://bugs.gentoo.org/561798
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Previously webapp-config would not do any sanity checks when
setting the package version. After adding a sanity check in 1.54
I made the mistake of not being flexible enough and this caused
a regression that prevented web apps with versions such as
"20140929d"[1] to be installed. This commit fixes that while still
allowing for some sanity checking.
[1]: https://github.com/gentoo/webapp-config/issues/2
|
| |
|
|
|
|
|
|
|
|
|
|
| |
changes
Other changes have been made, including:
* Formatting of command examples
* Changing short-hand flags to show they no longer require two dashes
* Adding information on the --prune-database flag.
* Code cleanup
|
| |
|
|
|
|
| |
webapp-{eclass, config}.{5, 8}.xml: Adds Devan Franchini to authors
|
|
|
|
|
|
| |
If this is not moved the .webapp file will not have WEB_INSTALLDIR
properly set when running "webapp-config -I <PN> <PVR>" which causes
issues when trying to uninstall the webapp.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Other command line flags such as -I, -C, or -U will always expect
2 command line args. If they are not properly supplied then that
is handled by argparse. This commit allows for the -lui flag that
can have 0 up to 2 optional flags passed to have that 0 flags passed.
|
|
|
|
|
|
| |
If the --dir flag is not specified with actions that require
the dir flag then webapp-config will default to the name of the
package as the installation directory.
|
| |
|
|
|
|
|
|
| |
The webapp-config man page says that the --list-installs flag
can be the package name, and/or version, or "*". So changes
needed to be made to allow for this functionality.
|
|
|
|
|
|
| |
The change from optparse to argparse requires the flags for upgrading,
installing, or removing a webapp to specify both package name and
package version after the flag.
|
|
|
|
| |
result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On systems which had dev-python/configparser installed (a package
to add support for the py3.x configparser class in py2.x)
webapp-config would make use of that class instead of py2.x's built
in ConfigParser class. This would lead to improper interpolation of
configuration variables that follow the syntax "${<var>}". This
dangerous behavior could (and has) lead to webapp-config installing
a webapp to the root filesystem of a host. This danger has been
avoided by modifying the import strategy for the config parser we're
using so that we force import the ConfigParser class if using py2.x.
X-Gentoo-Bug: 528752
X-Gentoo-Bug-URL: https://bugs.gentoo.org/528752
|
| |
|
|
|
|
|
|
| |
tests/dtest.py: Deletes dtest.py
tests/external.py: Adds tests for WebappAdd and WebappRemove
worker.py: Removes doctests
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.protect from doctest listing
tests/external.py: Adds tests for Protection class
protect.py: Removes doctests
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.filetype from doctest listing
tests/external.py: Adds tests for FileType class
filetype.py: Removes doctests
|
|
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.ebuild from doctest listing
tests/external.py: Adds tests for Ebuild class
ebuild.py: Removes doctests, the tests used for testing run_hooks()
were not added to the external test suite due to the fact that there
is no return to check against, just output.
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.dotconfig from doctest listing
tests/external.py: Adds tests for DotConfig class
dotconfig.py: Removes doctests
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.db from doctest listing
tests/external.py: Adds tests for WebappDB and WebappSource classes
db.py: Removes doctests
|
|
|
|
|
|
| |
tests/dtest.py: Removes WebappConfig.content from doctest listing
tests/external.py: Adds tests for Contents class
content.py: Removes doctests
|
|
|
|
|
| |
config/webapp-config: Adds changes to config to reflect the addition
of new server support.
|
|
|
|
|
|
|
| |
With the previous method of setting the package version you were
unable to pass the package version to webapp-config if it had more
than one decimal point (ex: 1.0.1 wouldn't work), this commit attempts
to fix that issue.
|
|
|
|
|
|
|
| |
In order to allow the nature of --list_unused_installed to remain true
to the nature of the command line arg, the nargs has been changed to
"*". This allows --list_unused_installed to be called with 0 or more
args via the argparse python class.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
To show users that they are running a live version of webapp-config
the version has been changed to reflect that.
|
|
|
|
|
|
|
|
|
|
| |
In some cases when setting environment variables you can encounter
an issue where you are trying to set a config value based on the
the environment variable and you run into a runtime error. One
notable situation is when you try to run webapp-config --envall
while running py2.7, you will run into an interpolation issue if
one of your environment variables includes a sort of interpolation
syntax such as: %s.
|
|
|
|
|
|
|
| |
This migration includes changes to how args are handled, along with
the semi-alphabetization of the command line args as well as all
necessary changes to have webapp-config properly work with argparse
in both py2.7 and py3.x.
|
|
|
|
|
|
|
|
|
|
|
| |
This commit corrects a typo where the short option for --default-dirs
is --vd instead of --dd, this has been corrected. Secondly, it also
attempts to make it clearer to the user that the --dd and --vf options
are two separate options and should not be treated equally by listing
them in two separate variable list entries.
X-Gentoo-Bug: 257592
X-Gentoo-Bug-URL: https://bugs.gentoo.org/257592
|
| |
|
|
|
|
|
|
|
| |
Although most of the codebase already has python3.x compatibility
when running 2to3 more minor changes where found. This commit
includes the changes found when running 2to3 on webapp-config's
codebase.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When webapp-config cleans out a webapp installation it needs to
remove the database entry of the file from it's designated installs
file. If more than one database entry is in the installs file it
should still list the database entry for the webapp that isn't being
removed. The logic is all there in db.py but after the file has
rewritten the entries it doesn't close the file properly and causes
a failure in the check right after the write(), which then unlinks
the installs file and removes the entries from webapp-config's
database.
X-Gentoo-Bug:494520
X-Gentoo-Bug-URL: https://bugs.gentoo.org/494520
|