From 438c8b9a3b75794d73717f9c9a07f0f3de1d294c Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Thu, 19 Dec 2024 22:27:24 -0600 Subject: [PATCH] Try fixing Lintian sources path --- cpp/build-packages.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cpp/build-packages.cpp b/cpp/build-packages.cpp index e0608a2..ffac937 100644 --- a/cpp/build-packages.cpp +++ b/cpp/build-packages.cpp @@ -751,12 +751,7 @@ static void upload_package_stage(Package &pkg, bool skip_dput) { static void run_lintian_stage(Package &pkg) { for(const auto &changes_file : pkg.changes_files) { - fs::path changes_path = changes_file; - fs::path source_path = changes_path.parent_path(); // Assuming source package is in the same directory - std::string source_package = changes_path.stem().string(); // Remove extension - fs::path source_package_path = fs::path(BASE_DIR) / source_package; - - run_source_lintian(pkg.name, source_package_path); + run_source_lintian(pkg.name, changes_file); } } @@ -1080,7 +1075,6 @@ int main(int argc, char** argv) { return 0; } -// Function to run Lintian (if needed elsewhere) static std::optional run_lintian(const fs::path& source_path) { std::stringstream issues; fs::path temp_file = fs::temp_directory_path() / "lintian_suppress.txt";