Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
powerpc-utils
powerpc-utils.bug-936383_snap-deprecated_warnin...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File powerpc-utils.bug-936383_snap-deprecated_warning_sles.patch of Package powerpc-utils
From 30265850decfe18621ab5f03c8f2eee06777d6c0 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Date: Mon, 29 Jun 2015 14:14:48 +0530 Subject: [PATCH 2/2] snap: Warn users about deprecated support SLES 12 onwards This patch introduce deprecated warning on SLES 12 onwards to use supportconfig, which captures all the information collected by snap. Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> --- snap | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) Index: powerpc-utils-1.2.22/scripts/snap =================================================================== --- powerpc-utils-1.2.22.orig/scripts/snap +++ powerpc-utils-1.2.22/scripts/snap @@ -35,6 +35,24 @@ my $cmddir = "snap_commands"; # cmd out my $cmdoutdir = "$outdir/$cmddir"; # in outdir dir. my $rsxx_exists = 0; # Does an IBM Flash Adapter exist? +my $suse_release_file = "/etc/SuSE-release"; + +if (-e $suse_release_file) { + open(RELEASE, "< $suse_release_file") or die "open: $!\n"; + while(<RELEASE>) { + if ($_ =~ /VERSION/) { + my $suse_version = (split /=/, $_)[1]; + if ($suse_version >= 12) { + print "snap is depcreated from SLES 12 onwards..!\n"; + print "Please use supportconfig to collect log data..!! \n"; + close(RELEASE); + exit 1; + } #check version number + } # match version + } #while + close(RELEASE); +} + our($opt_a, $opt_d, $opt_h, $opt_o, $opt_t, $opt_v); # Files to include in all snaps
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor