diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-07 11:29:19 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-07 16:13:36 -0700 |
commit | f9ea4b884158e5734990e963f63a68c33b63057e (patch) | |
tree | e60273348ff015b58e05bbc5fcfc1fa3cdde2a43 /src | |
parent | fc3fa23561c91aaa1e48a8ca21ade1bdc8546cb4 (diff) | |
download | consfigurator-f9ea4b884158e5734990e963f63a68c33b63057e.tar.gz |
add APT:UPGRADED, APT:AUTOREMOVED
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src')
-rw-r--r-- | src/package.lisp | 2 | ||||
-rw-r--r-- | src/property/apt.lisp | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/package.lisp b/src/package.lisp index bdb3693..677868f 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -363,6 +363,8 @@ #:service-installed-running #:all-configured #:updated + #:upgraded + #:autoremoved #:periodic-updates #:unattended-upgrades #:mirror diff --git a/src/property/apt.lisp b/src/property/apt.lisp index 94d5e86..c1e57ee 100644 --- a/src/property/apt.lisp +++ b/src/property/apt.lisp @@ -106,6 +106,18 @@ E.g. (APT:SERVICE-INSTALLED-RUNNING \"apache2\")." (cmd:single :env +noninteractive-env+ :inform "apt-get" "update" "--allow-releaseinfo-change")))) +(defprop upgraded :posix () + (:desc "apt upgraded") + (:hostattrs (os:required 'os:debianlike)) + (:apply (with-changes-dpkg-status + (apt-get :inform "-y" "dist-upgrade")))) + +(defprop autoremoved :posix () + (:desc "apt removed automatically installed packages") + (:hostattrs (os:required 'os:debianlike)) + (:apply (with-changes-dpkg-status + (apt-get :inform "-y" "autoremove")))) + (defprop periodic-updates :posix () "Enable periodically updating the apt indexes and downloading new versions of packages. Does not do any automatic upgrades." |