builddeb: clean generated package content
authorBastian Germann <bage@linutronix.de>
Tue, 25 May 2021 23:01:37 +0000 (01:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:41 +0000 (09:33 +0100)
[ Upstream commit c9f9cf2560e40b62015c6c4a04be60f55ce5240e ]

For each binary Debian package, a directory with the package name is
created in the debian directory. Correct the generated file matches in the
package's clean target, which were renamed without adjusting the target.

Fixes: 1694e94e4f46 ("builddeb: match temporary directory name to the package name")
Signed-off-by: Bastian Germann <bage@linutronix.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/package/mkdebian

index a3ac5a7..5be7e62 100755 (executable)
@@ -236,7 +236,7 @@ binary-arch: build-arch
        KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
 
 clean:
-       rm -rf debian/*tmp debian/files
+       rm -rf debian/files debian/linux-*
        \$(MAKE) clean
 
 binary: binary-arch