| 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: 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
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the prune_database() function checks to see if a webapp is
installed in the directory the database says it's supposed to be
installed in it originally checked to see if a .webapp file existed
in the directory. But due to the fact that a .webapp file could exist
in a directory and not be the webapp that is listed as installed in
that directory it was decided that checking the existance of the
.webapp-<webapp>-<version> file would be better as it confirms that
a webapp exists in that directory and it is the webapp that it is
supposed to be.
|
|
|
|
|
|
|
|
|
| |
Due to the variable nature of the output in the add() function in
content.py it was dicussed that the best decision would be to disable
the failing doctest code and prevent it from causing failures.
X-Gentoo-Bug: 430010
X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the variable nature of the output of the run_var() function it
is unrealistic to create doctest code that will not fail a test. This
is mainly due to the fact that there are particular variables that may
never be the same on any two user's systems. It has been decided that
the best solution would be to simply "comment out" the doctest code
to prevent it from running and causing failures.
X-Gentoo-Bug: 430010
X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the use of the get() function in the split_hostname()
function in favor of the maybe_get() function. This change still
allows vhost_subdomain_# variables to be set in /etc/vhosts/webapp-config
without the risk of it being overwritten except due to the use of the
maybe_get() function it will no longer give warnings to the user if
a vhost_subdomain_# variable is not found. This is ideal because
it removes the need of masking the warning in the get() function.
X-Gentoo-Bug: 300250
X-Gentoo-Bug-URL: https://bugs.gentoo.org/300250
X-Gentoo-Bug: 349491
X-Gentoo-Bug-URL: https://bugs.gentoo.org/349491
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When setting vhost_subdomain_# variables in /etc/vhosts/webapp-config
they have a possibility of being overwritten by the split_hostname()
function. To see this happen you should set vhost_subdomain_1 to a
value and try and use it as a variable in your config file. This will
then get overwritten by your vhost_hostname. This commit will prevent
that from occuring while also having the get() method ignore the
inexistence of a vhost_subdomain_# variable in your config file,
due to the fact that if the variable does exist it will be used, and
if the variable does not exist then it will get overwritten by a
piece of vhost_hostname that is separated by the "." delimiter.
X-Gentoo-Bug: 300250
X-Gentoo-Bug-URL: https://bugs.gentoo.org/300250
X-Gentoo-Bug: 349491
X-Gentoo-Bug-URL: https://bugs.gentoo.org/349491
|
| |
|