[Mageia-sysadm] [332] move mga-signpackage to bin directory and add it in Makefile.PL

root at mageia.org root at mageia.org
Thu Jan 20 18:35:27 CET 2011


Revision: 332
Author:   boklm
Date:     2011-01-20 18:35:27 +0100 (Thu, 20 Jan 2011)
Log Message:
-----------
move mga-signpackage to bin directory and add it in Makefile.PL

Modified Paths:
--------------
    build_system/mdv-youri-submit/trunk/Makefile.PL

Added Paths:
-----------
    build_system/mdv-youri-submit/trunk/bin/mga-signpackage

Removed Paths:
-------------
    build_system/mdv-youri-submit/trunk/mga-signpackage

Modified: build_system/mdv-youri-submit/trunk/Makefile.PL
===================================================================
--- build_system/mdv-youri-submit/trunk/Makefile.PL	2011-01-20 17:10:16 UTC (rev 331)
+++ build_system/mdv-youri-submit/trunk/Makefile.PL	2011-01-20 17:35:27 UTC (rev 332)
@@ -9,7 +9,8 @@
     EXE_FILES  => [
         'bin/youri-submit',
         'bin/youri-submit-restricted',
-        'bin/youri-submit-proxy'
+        'bin/youri-submit-proxy',
+	'bin/mga-signpackage'
         ],
     PREREQ_PM  => {
         'Youri::Config'          => 0,

Copied: build_system/mdv-youri-submit/trunk/bin/mga-signpackage (from rev 331, build_system/mdv-youri-submit/trunk/mga-signpackage)
===================================================================
--- build_system/mdv-youri-submit/trunk/bin/mga-signpackage	                        (rev 0)
+++ build_system/mdv-youri-submit/trunk/bin/mga-signpackage	2011-01-20 17:35:27 UTC (rev 332)
@@ -0,0 +1,29 @@
+#!/usr/bin/perl -w
+
+use strict;
+use RPM4::Sign;
+use File::Spec;
+
+sub signpackage {
+    my ($file, $name, $path) = @_;
+
+    # check if parent directory is writable
+    my $parent = (File::Spec->splitpath($file))[1];
+    die "Unsignable package, parent directory is read-only"
+        unless -w $parent;
+
+    my $sign = RPM4::Sign->new(
+        name => $name,
+        path => $path,
+	passphrase => '',
+    );
+
+    $sign->rpmssign($file)
+}
+
+if (@ARGV != 3) {
+    exit 1;
+}
+
+signpackage(@ARGV);
+

Deleted: build_system/mdv-youri-submit/trunk/mga-signpackage
===================================================================
--- build_system/mdv-youri-submit/trunk/mga-signpackage	2011-01-20 17:10:16 UTC (rev 331)
+++ build_system/mdv-youri-submit/trunk/mga-signpackage	2011-01-20 17:35:27 UTC (rev 332)
@@ -1,29 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use RPM4::Sign;
-use File::Spec;
-
-sub signpackage {
-    my ($file, $name, $path) = @_;
-
-    # check if parent directory is writable
-    my $parent = (File::Spec->splitpath($file))[1];
-    die "Unsignable package, parent directory is read-only"
-        unless -w $parent;
-
-    my $sign = RPM4::Sign->new(
-        name => $name,
-        path => $path,
-	passphrase => '',
-    );
-
-    $sign->rpmssign($file)
-}
-
-if (@ARGV != 3) {
-    exit 1;
-}
-
-signpackage(@ARGV);
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110120/3ef83f59/attachment-0001.html>


More information about the Mageia-sysadm mailing list