summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-01-22 19:52:19 +0100
committerJulian Andres Klode <jak@debian.org>2017-02-12 18:42:02 +0100
commitf5e9be1da89725f9bf1915bdf86fdc4a77edf917 (patch)
tree2dc63cb9b17f65aa43d08a69b41f8b68be30a226
parentc050f4fa30ccda637f3e05edddf750b768c8590d (diff)
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.
-rw-r--r--.gitignore2
l---------debian/copyright1
-rwxr-xr-xdebian/rules3
3 files changed, 5 insertions, 1 deletions
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