[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[texlive-nonbin] 01/02: implement filemove cfg file directive



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

preining pushed a commit to branch master
in repository texlive-nonbin.

commit 02ee8e7b6f0d751612a357ad300a5a7990f701c1
Author: Norbert Preining <preining@debian.org>
Date:   Tue Jun 20 08:20:01 2017 +0900

    implement filemove cfg file directive
    
    automatically add the correct breaks/replaces when files are moved
    from one package to the next
---
 all/debian/tpm2debcommon.pm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/all/debian/tpm2debcommon.pm b/all/debian/tpm2debcommon.pm
index 70e6da7..4badcf6 100755
--- a/all/debian/tpm2debcommon.pm
+++ b/all/debian/tpm2debcommon.pm
@@ -602,6 +602,19 @@ sub read_one_config_file {
 			$Config{'breaks'}{$a} = [ @{$Config{'breaks'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
 			next;
 		}
+		if ($type eq "filemove") {
+			my ($b,$v) = @rest;
+			$opt_debug && print STDERR "b=$b.\n";
+			# file movement from package A to package B
+			# filemove;A;B;VERSION
+			# see https://wiki.debian.org/PackageTransition
+			# in A: breaks B (<< V)
+			# in B: breaks A (<< V)
+			#       replaces A (<< V)
+			$Config{'breaks'}{$a} = [ @{$Config{'breaks'}{$a}}, "$b (<< $v)" ];
+			$Config{'replaces'}{$a} = [ @{$Config{'replaces'}{$a}}, "$b (<< $v)" ];
+			$Config{'breaks'}{$b} = [ @{$Config{'breaks'}{$b}}, "$a (<< $v)" ];
+		}
 		if ($type eq "execute") {
 			my ($b) = @rest;
 			$opt_debug && print STDERR  "b=$b.\n";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-nonbin.git


Reply to: