31 lines
977 B
Diff
31 lines
977 B
Diff
|
From b7a554e2dec3351c91c237497fe37cbc30d664bd Mon Sep 17 00:00:00 2001
|
||
|
From: Victor Zhestkov <Victor.Zhestkov@suse.com>
|
||
|
Date: Thu, 1 Sep 2022 14:42:24 +0300
|
||
|
Subject: [PATCH] Change the delimeters to prevent possible tracebacks on
|
||
|
some packages with dpkg_lowpkg
|
||
|
|
||
|
* Use another separator on query to dpkg-query
|
||
|
|
||
|
* Fix the test test_dpkg_lowpkg::test_info
|
||
|
---
|
||
|
salt/modules/dpkg_lowpkg.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/salt/modules/dpkg_lowpkg.py b/salt/modules/dpkg_lowpkg.py
|
||
|
index 4d716c8772..78990492cf 100644
|
||
|
--- a/salt/modules/dpkg_lowpkg.py
|
||
|
+++ b/salt/modules/dpkg_lowpkg.py
|
||
|
@@ -347,7 +347,7 @@ def _get_pkg_info(*packages, **kwargs):
|
||
|
if build_date:
|
||
|
pkg_data["build_date"] = build_date
|
||
|
pkg_data["build_date_time_t"] = build_date_t
|
||
|
- pkg_data["description"] = pkg_descr.split(":", 1)[-1]
|
||
|
+ pkg_data["description"] = pkg_descr
|
||
|
ret.append(pkg_data)
|
||
|
|
||
|
return ret
|
||
|
--
|
||
|
2.39.2
|
||
|
|
||
|
|