From 92b13dd66fe6372ee2f25866941265e416ffbd18 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mon, 10 Nov 2025 22:30:24 -0500 Subject: [PATCH] Handle parsing .install files with omitted destination directory --- src/Debian/Debianize/InputDebian.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debian/Debianize/InputDebian.hs b/src/Debian/Debianize/InputDebian.hs index df31516..1ed98fb 100644 --- a/src/Debian/Debianize/InputDebian.hs +++ b/src/Debian/Debianize/InputDebian.hs @@ -278,7 +278,7 @@ readLink p line = readInstall :: Monad m => BinPkgName -> Text -> DebianT m () readInstall p line = case break isSpace line of - (_, b) | null b -> error $ "readInstall: syntax error in .install file for " ++ show p ++ ": " ++ show line + (a, b) | null b -> install p (unpack (strip a)) (unpack (strip a)) (a, b) -> install p (unpack (strip a)) (unpack (strip b)) -- | Read a line from a debian .dirs file