[Pkg-ocaml-maint-commits] [dose3] 14/16: backport patch remove_src_prefix_from_name

Johannes Schauer josch at moszumanska.debian.org
Tue May 5 19:49:03 UTC 2015


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

josch pushed a commit to tag debian/3.3-3
in repository dose3.

commit b6463194d81f8bcf40f1aacd39b89862cf9cad01
Author: josch <j.schauer at email.de>
Date:   Thu Mar 26 00:07:17 2015 +0100

    backport patch remove_src_prefix_from_name
---
 debian/changelog                           |  1 +
 debian/patches/remove_src_prefix_from_name | 21 +++++++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2e7ea5b..4897b69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ dose3 (3.3-2) UNRELEASED; urgency=medium
     unused
   * backport patch encode-package-name-in-cudf_extras to prepare for switch
     of cudf encoding of Debian package names in next dose3 release
+  * backport patch remove_src_prefix_from_name
 
  -- Johannes Schauer <josch at debian.org>  Tue, 24 Mar 2015 07:44:19 +0100
 
diff --git a/debian/patches/remove_src_prefix_from_name b/debian/patches/remove_src_prefix_from_name
new file mode 100644
index 0000000..a8cb9b4
--- /dev/null
+++ b/debian/patches/remove_src_prefix_from_name
@@ -0,0 +1,21 @@
+commit 0e00e5a50885fd0a57dec91245a4bc0facde780a
+Author: josch <j.schauer at email.de>
+Date:   Thu Mar 26 01:49:07 2015 +0100
+
+    remove src: prefix from name in cudf_extras
+
+--- a/deb/debcudf.ml
++++ b/deb/debcudf.ml
+@@ -325,7 +325,11 @@ let preamble =
+ 
+ let add_extra_default extras tables pkg =
+   let check = function [] :: _ -> failwith (Printf.sprintf "Malformed dep (%s %s)" pkg.name pkg.version) |l -> l in
+-  let name = ("name",`String pkg.name) in
++  let name = if String.starts_with pkg.name "src:" then
++      String.sub pkg.name 4 ((String.length pkg.name) - 4)
++    else pkg.name
++  in
++  let name = ("name",`String name) in
+   let number = ("number",`String pkg.version) in
+   let architecture = ("architecture",`String pkg.architecture) in
+   let priority = ("priority",`String pkg.priority) in
diff --git a/debian/patches/series b/debian/patches/series
index 40cf834..5614a8f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ binaries-prefix-edos
 coinstall-binary-name
 cudfSolver-fix-leaking-fds
 encode-package-name-in-cudf_extras
+remove_src_prefix_from_name

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/dose3.git



More information about the Pkg-ocaml-maint-commits mailing list