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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit f8b6de8eb1200f18aec701c085efd53bac7fce90
Author: Dominique Dumont <d...@debian.org>
Date:   Thu Feb 16 20:57:52 2017 +0100

    add support for package scripts
---
 lib/Config/Model/models/Dpkg.pl                | 10 ++++++
 lib/Config/Model/models/Dpkg/PackageScripts.pl | 46 ++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/lib/Config/Model/models/Dpkg.pl b/lib/Config/Model/models/Dpkg.pl
index 402476d..dbc8cc2 100644
--- a/lib/Config/Model/models/Dpkg.pl
+++ b/lib/Config/Model/models/Dpkg.pl
@@ -158,6 +158,16 @@ Please keep in mind that dh_install will not expand 
wildcards in this file.
         'summary' => 'list of files to clean',
         'type' => 'list'
       },
+      'package-scripts',
+      {
+        'cargo' => {
+          'config_class_name' => 'Dpkg::PackageScripts',
+          'type' => 'node'
+        },
+        'follow_keys_from' => '- control binary',
+        'index_type' => 'string',
+        'type' => 'hash'
+      },
       'patches',
       {
         'cargo' => {
diff --git a/lib/Config/Model/models/Dpkg/PackageScripts.pl 
b/lib/Config/Model/models/Dpkg/PackageScripts.pl
new file mode 100644
index 0000000..60172c2
--- /dev/null
+++ b/lib/Config/Model/models/Dpkg/PackageScripts.pl
@@ -0,0 +1,46 @@
+[
+  {
+    'element' => [
+      'preinst',
+      {
+        'description' => 'For details, see L<Debian 
Policy|https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html>',
+        'summary' => 'script called before a package is unpacked',
+        'type' => 'leaf',
+        'value_type' => 'string'
+      },
+      'postinst',
+      {
+        'description' => 'For details, see L<Debian 
Policy|https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html>',
+        'summary' => 'script called after a package is unpacked',
+        'type' => 'leaf',
+        'value_type' => 'string'
+      },
+      'prerm',
+      {
+        'description' => 'For details, see L<Debian 
Policy|https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html>',
+        'summary' => 'script called before a package is removed',
+        'type' => 'leaf',
+        'value_type' => 'string'
+      },
+      'postrm',
+      {
+        'description' => 'For details, see L<Debian 
Policy|https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html>',
+        'summary' => 'script called after a package is removed',
+        'type' => 'leaf',
+        'value_type' => 'string'
+      }
+    ],
+    'name' => 'Dpkg::PackageScripts',
+    'read_config' => [
+      {
+        'auto_create' => '1',
+        'auto_delete' => '1',
+        'backend' => 'PlainFile',
+        'config_dir' => 'debian',
+        'file' => '&index(-).&element'
+      }
+    ]
+  }
+]
+;
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to