[openjdk-8] 01/01: Create debian/control without preexisting debian/control

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Jul 8 11:19:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository openjdk-8.

commit 653c555a607756330b9b3f2c26826fd9f4e1207c
Author: Thomas Klute <thomas2.klute at uni-dortmund.de>
Date:   Thu Jul 3 15:45:19 2014 +0200

    Create debian/control without preexisting debian/control
    
    Previously, the rule in debian/rules to create debian/control expected
    an older debian/control to be present and tried to back it up, which
    failed if there was no debian/control. Fix this by only doing the backup
    when debian/control exists.
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 69cd1ca..f26c620 100755
--- a/debian/rules
+++ b/debian/rules
@@ -725,7 +725,9 @@ pkg_jcommon = java-common (>= 0.28)
 control_vars += '-Vjcommon:Depends=$(pkg_jcommon)'
 
 debian/control: debian/templates/control.in debian/rules
-	@cp -p debian/control debian/control.old
+	@if [ -e debian/control ]; then \
+	  cp -p debian/control debian/control.old; \
+	fi
 	sed \
 	      -e 's/@basename@/$(basename)/g' \
 	      -e 's/@bd_autotools@/$(bd_autotools)/g' \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/openjdk-8.git



More information about the pkg-java-commits mailing list