summaryrefslogtreecommitdiff
path: root/portato/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'portato/plugins')
-rw-r--r--portato/plugins/etc_proposals.py10
-rw-r--r--portato/plugins/resume_loop.py6
2 files changed, 8 insertions, 8 deletions
diff --git a/portato/plugins/etc_proposals.py b/portato/plugins/etc_proposals.py
index fa54600..e6c3187 100644
--- a/portato/plugins/etc_proposals.py
+++ b/portato/plugins/etc_proposals.py
@@ -10,7 +10,7 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from portato.helper import debug, am_i_root
+from portato.helper import *
from portato.backend import system
from subprocess import Popen
@@ -50,7 +50,7 @@ def etc_prop (*args, **kwargs):
if float(__version__) < 1.1:
l = len(PortatoEtcProposals())
- debug(l,"files to update")
+ debug("%s files to update.", l)
if l > 0:
Popen(PROG)
@@ -60,7 +60,7 @@ def etc_prop (*args, **kwargs):
if f:
Popen([PROG, "--fastexit"]+f)
else:
- debug("Cannot start etc-proposals. No graphical frontend installed!", error = 1)
+ error("Cannot start etc-proposals. No graphical frontend installed!")
def etc_prop_menu (*args, **kwargs):
if am_i_root():
@@ -72,6 +72,6 @@ def etc_prop_menu (*args, **kwargs):
if f:
Popen([PROG]+f)
else:
- debug("Cannot start etc-proposals. No graphical frontend installed!", error = 1)
+ error("Cannot start etc-proposals. No graphical frontend installed!")
else:
- debug("Cannot start etc-proposals. Not root!", error = 1)
+ error("Cannot start etc-proposals. Not root!")
diff --git a/portato/plugins/resume_loop.py b/portato/plugins/resume_loop.py
index 9891fee..45c735a 100644
--- a/portato/plugins/resume_loop.py
+++ b/portato/plugins/resume_loop.py
@@ -13,7 +13,7 @@
import pty
from subprocess import call, STDOUT
from portato.backend import system
-from portato.helper import debug
+from portato.helper import debug, warning
console = None
command = "until emerge --resume --skipfirst; do : ; done"
@@ -24,11 +24,11 @@ def set_console (*args, **kwargs):
def resume_loop (retcode, *args, **kwargs):
if retcode is None:
- debug("Resume-loop called while process is still running!", warn = True)
+ warning("Resume-loop called while process is still running!")
elif retcode == 0:
# everything ok - ignore
#pass
- debug("Everything is ok")
+ debug("Everything is ok.")
else:
if console is None:
debug("No console for the resume loop...")
n title='2023-09-15 15:43:49 +0200'>2023-09-15Go 1.21René 'Necoro' Neumann2-8/+2 2023-09-15Upgrade dependenciesRené 'Necoro' Neumann2-17/+20 2023-09-15Bump github.com/antonmedv/expr from 1.14.0 to 1.15.1dependabot[bot]2-8/+4 Bumps [github.com/antonmedv/expr](https://github.com/antonmedv/expr) from 1.14.0 to 1.15.1. - [Release notes](https://github.com/antonmedv/expr/releases) - [Commits](https://github.com/antonmedv/expr/compare/v1.14.0...v1.15.1) --- updated-dependencies: - dependency-name: github.com/antonmedv/expr dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 2023-09-15Bump actions/checkout from 3 to 4dependabot[bot]2-2/+2 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 2023-08-26Bump golang.org/x/net from 0.12.0 to 0.14.0dependabot[bot]2-6/+6 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.14.0. - [Commits](https://github.com/golang/net/compare/v0.12.0...v0.14.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 2023-08-26Bump github.com/antonmedv/expr from 1.12.6 to 1.14.0dependabot[bot]2-3/+3 Bumps [github.com/antonmedv/expr](https://github.com/antonmedv/expr) from 1.12.6 to 1.14.0. - [Release notes](https://github.com/antonmedv/expr/releases) - [Commits](https://github.com/antonmedv/expr/compare/v1.12.6...v1.14.0) --- updated-dependencies: - dependency-name: github.com/antonmedv/expr dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 2023-07-15Upgrade depsRené 'Necoro' Neumann2-15/+12 2023-06-13Version Changelog entryv1.7.0René 'Necoro' Neumann1-1/+4 2023-06-13Prepare v1.7.0René 'Necoro' Neumann2-2/+2 2023-06-05Improve changelogRené 'Necoro' Neumann1-2/+4 2023-06-05IMAP client does not need to know about max number of connectionsRené 'Necoro' Neumann2-19/+12 2023-06-04ChangelogRené 'Necoro' Neumann1-0/+4 2023-06-04Add new config option to set max number of IMAP connections.René 'Necoro' Neumann5-20/+26 Default is 5 (as was the hard-coded value before). Closes issue #98. 2023-06-04Improve locking around IMAP connect/disconnect.René 'Necoro' Neumann1-10/+26 This ensures that no connect happens _after_ a disconnect has been issued. Closes issue #97. 2023-05-20Bump golang.org/x/net from 0.9.0 to 0.10.0dependabot[bot]2-2/+3 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.9.0 to 0.10.0. - [Commits](https://github.com/golang/net/compare/v0.9.0...v0.10.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 2023-05-12Amend changelogRené 'Necoro' Neumann1-0/+1 2023-05-12Issue #95 Add warning when config can be read globally.René 'Necoro' Neumann1-0/+11 2023-05-11Issue #95: Change cache ownership.René 'Necoro' Neumann1-0/+4 There is no need for the cache to be accessible by anyone who is not us. Thus enforce the cache to be stored with 0600. 2023-05-11Issue #95: Add hint about sensible access rights.René 'Necoro' Neumann1-0/+1 2023-04-23[workflow] Port changes also to releaseRené 'Necoro' Neumann1-6/+5 2023-04-23[workflow] Checkout before go setupRené 'Necoro' Neumann1-3/+3 2023-04-23[workflow] determine go version from go.modRené 'Necoro' Neumann1-3/+2 2023-04-23Improve test to also validate error messageRené 'Necoro' Neumann1-42/+39 2023-04-22Fix/improve testsRené 'Necoro' Neumann1-59/+104 2023-04-22Improve error handlingRené 'Necoro' Neumann1-1/+11 2023-04-21Fix workflow: '1.20' needs to be quotedRené 'Necoro' Neumann2-2/+2