Skip to content

Commit

Permalink
Set default rpm package summary value if it's missing (bsc#1232530)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-czernek authored Dec 9, 2024
1 parent 2038ceb commit f0d8c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/spacewalk/server/importlib/packageImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def _processPackage(self, package):

# fix encoding issues in package summary and description
package["description"] = self._fix_encoding(package["description"])
package["summary"] = self._fix_encoding(package["summary"]).rstrip()
package["summary"] = self._fix_encoding(package["summary"])
package["summary"] = package["summary"].rstrip() if package["summary"] else ""

if package["product_files"] is not None:
for prodFile in package["product_files"]:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Set default rpm package summary if it's missing (bsc#1232530)

0 comments on commit f0d8c41

Please sign in to comment.