From 4ba7fcff0bc4dfdf7365f95578e0bc5a2634b300 Mon Sep 17 00:00:00 2001 From: lindexi Date: Wed, 17 Sep 2025 18:55:48 +0800 Subject: [PATCH] =?UTF-8?q?Revert:=20Linux=20Control=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=A0=E6=8E=89=E6=9C=80=E5=90=8E=E7=9A=84=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DebUOS/Packaging.DebUOS/DebUOSPackageFileStructCreator.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DebUOS/Packaging.DebUOS/DebUOSPackageFileStructCreator.cs b/DebUOS/Packaging.DebUOS/DebUOSPackageFileStructCreator.cs index ff329db..8755c94 100644 --- a/DebUOS/Packaging.DebUOS/DebUOSPackageFileStructCreator.cs +++ b/DebUOS/Packaging.DebUOS/DebUOSPackageFileStructCreator.cs @@ -381,11 +381,6 @@ public void CreatePackagingFolder(DebUOSConfiguration configuration) stringBuilder.Append($"X-Package-System: {configuration.DebControlXPackageSystem}\n"); } - // 去掉最后的空行 - if (stringBuilder[^1] == '\n') - { - stringBuilder.Remove(stringBuilder.Length - 1, 1); - } File.WriteAllText(controlFile, stringBuilder.ToString(), encoding); }