From 6d21e9fcedf3d45199fd883cc2ecc5504ccbed71 Mon Sep 17 00:00:00 2001 From: Kayou Date: Thu, 25 Jul 2024 15:56:56 +0200 Subject: [PATCH] a better way to avoid the double commas --- helpers/helpers.v1.d/apt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helpers/helpers.v1.d/apt b/helpers/helpers.v1.d/apt index 08ecf596c..3ac5905ef 100644 --- a/helpers/helpers.v1.d/apt +++ b/helpers/helpers.v1.d/apt @@ -196,9 +196,6 @@ ynh_package_install_from_equivs() { # Install missing dependencies with ynh_package_install ynh_wait_dpkg_free - # Remove the double commas because dpkg-deb doesn't like them - sed --in-place 's@,,@,@g' "$controlfile" - cp "$controlfile" "${TMPDIR}/${pkgname}/DEBIAN/control" # Install the fake package without its dependencies with dpkg --force-depends @@ -327,7 +324,7 @@ Section: misc Priority: optional Package: ${dep_app}-ynh-deps Version: ${version} -Depends: ${dependencies} +Depends: ${dependencies//,,/,} Architecture: all Maintainer: root@localhost Description: Fake package for ${app} (YunoHost app) dependencies