Compare commits
No commits in common. "94c170f9f74dd89f2f2d8ff0d58242218364b542" and "8bddce1329bd2849cc1621b19a8a52ee675645b0" have entirely different histories.
94c170f9f7
...
8bddce1329
3 changed files with 2 additions and 21 deletions
|
@ -5,12 +5,6 @@ All notable changes to rattail-fabric2 will be documented in this file.
|
|||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.4.6 (2025-09-06)
|
||||
|
||||
### Fix
|
||||
|
||||
- add `apt.is_installed()` function
|
||||
|
||||
## v0.4.5 (2025-02-01)
|
||||
|
||||
### Fix
|
||||
|
|
|
@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "rattail-fabric2"
|
||||
version = "0.4.6"
|
||||
version = "0.4.5"
|
||||
description = "Fabric (v2) Utilities for Rattail"
|
||||
readme = "README.md"
|
||||
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2025 Lance Edgar
|
||||
# Copyright © 2010-2018 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -44,19 +44,6 @@ def install(c, *packages, **kwargs):
|
|||
frontend, target, force_yes, ' '.join(packages)), **kwargs)
|
||||
|
||||
|
||||
def is_installed(c, package):
|
||||
"""
|
||||
Check if the given APT package is installed.
|
||||
|
||||
:param c: Fabric connection.
|
||||
|
||||
:param package: Name of package to be checked.
|
||||
|
||||
:returns: ``True`` if package is installed, else ``False``.
|
||||
"""
|
||||
return c.run(f"dpkg-query -s {package}", warn=True).ok
|
||||
|
||||
|
||||
def purge(c, *packages):
|
||||
"""
|
||||
Uninstall and purge config for given packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue