From f5e9be1da89725f9bf1915bdf86fdc4a77edf917 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 22 Jan 2017 19:52:19 +0100 Subject: debian: Generate debian/copyright during clean Ubuntu servers / Launchpad rejects uploads where debian/copyright is a symbolic link, and lintian warns about them. I think that's crazy, but I'm tired of having to work around this in SRUs, so let's just solve it by copying the file during clean: This way, it won't be in git, but it will be generated during the export by git-buildpackage. --- .gitignore | 2 ++ debian/copyright | 1 - debian/rules | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) delete mode 120000 debian/copyright diff --git a/.gitignore b/.gitignore index 9712a034d..630e50839 100644 --- a/.gitignore +++ b/.gitignore @@ -108,6 +108,8 @@ Makefile /debian/libapt-pkg-dev/ /debian/libapt-pkg-doc/ /debian/apt-transport-https/ +# Copyright file copied from COPYING +/debian/copyright # generated for and by abicheck /abicheck/apt_build.xml diff --git a/debian/copyright b/debian/copyright deleted file mode 120000 index 012065c85..000000000 --- a/debian/copyright +++ /dev/null @@ -1 +0,0 @@ -../COPYING \ No newline at end of file diff --git a/debian/rules b/debian/rules index 62d913f0a..d6921eafc 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,9 @@ export CTEST_OUTPUT_ON_FAILURE=1 %: dh $@ +override_dh_clean: + cp COPYING debian/copyright + override_dh_install-indep: dh_install --list-missing -- cgit v1.2.3