diff --git a/osctiny/__init__.py b/osctiny/__init__.py index a51c43a..62bed45 100644 --- a/osctiny/__init__.py +++ b/osctiny/__init__.py @@ -6,4 +6,4 @@ __all__ = ['Osc', 'bs_requests', 'buildresults', 'comments', 'packages', 'projects', 'search', 'users'] -__version__ = "0.7.5" +__version__ = "0.7.6" diff --git a/osctiny/extensions/packages.py b/osctiny/extensions/packages.py index 22d9fe6..1f0bb81 100644 --- a/osctiny/extensions/packages.py +++ b/osctiny/extensions/packages.py @@ -32,11 +32,15 @@ def cleanup_params(**params) -> dict: .. versionadded::0.7.4 """ - if params.get("view", None) == "info": + view = params.get("view", "") + if view == "info": # The 'info' view is strict about parameter validation return {key: value for key, value in params.items() if key in ["parse", "arch", "repository", "view"]} - + if "productlist" in view: + # The "deleted" parameter seems to have precedence over other acceptable parameters + # (e.g. "view") + return {key: value for key, value in params.items() if key not in ["deleted"]} return params def get_list(self, project: str, deleted: bool = False, expand: bool = True, **params): diff --git a/setup.py b/setup.py index 49aeff8..1f7f358 100755 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def _filter(requires): setup( name='osc-tiny', - version='0.7.5', + version='0.7.6', description='Client API for openSUSE BuildService', long_description=long_description, long_description_content_type="text/markdown",