__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""Platform-specific apport.packaging implementation."""
import importlib
import os
import platform
from apport.packaging import PackageInfo
def determine_packaging_implementation() -> str:
"""Determine the packaging implementation for the host."""
info = platform.freedesktop_os_release()
assert info is not None
ids = set([info["ID"]]) | set(info.get("ID_LIKE", "").split(" "))
if "debian" in ids:
return "apt_dpkg"
if os.path.exists("/usr/bin/rpm"):
return "rpm"
raise RuntimeError(
"Could not determine system package manager."
" Please file a bug and provide /etc/os-release!"
)
def load_packaging_implementation() -> PackageInfo:
"""Return the packaging implementation for the host."""
module = importlib.import_module(
f"apport.packaging_impl.{determine_packaging_implementation()}"
)
return module.impl
impl = load_packaging_implementation()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 946 B | 0644 |
|
| apt_dpkg.py | File | 74.96 KB | 0644 |
|
| rpm.py | File | 11.42 KB | 0644 |
|