[csw-devel] SF.net SVN: gar:[10399] csw/mgar/gar/v2/bin/check_for_deps
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Jul 1 14:14:13 CEST 2010
Revision: 10399
http://gar.svn.sourceforge.net/gar/?rev=10399&view=rev
Author: bdwalton
Date: 2010-07-01 12:14:13 +0000 (Thu, 01 Jul 2010)
Log Message:
-----------
gar/v2: add a basic external check for deps script
Added Paths:
-----------
csw/mgar/gar/v2/bin/check_for_deps
Added: csw/mgar/gar/v2/bin/check_for_deps
===================================================================
--- csw/mgar/gar/v2/bin/check_for_deps (rev 0)
+++ csw/mgar/gar/v2/bin/check_for_deps 2010-07-01 12:14:13 UTC (rev 10399)
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+my $status = 0;
+
+foreach my $pkg (@ARGV) {
+ print "==> Verifying installed package $pkg: ";
+ if ( ! -d "/var/sadm/pkg/$pkg" ) {
+ print "MISSING\n";
+ $status = 1;
+ } else {
+ print "ok\n";
+ }
+}
+
+exit $status;
Property changes on: csw/mgar/gar/v2/bin/check_for_deps
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list