Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311017 Details for
Bug 454064
spacewalk-setup does not show help
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
A dirty hack for spacewalk-setup to show its help text
spacewalk-setup_usage_1.patch (text/plain), 1.29 KB, created by
Satoru SATOH
on 2008-07-04 08:38:54 UTC
(
hide
)
Description:
A dirty hack for spacewalk-setup to show its help text
Filename:
MIME Type:
Creator:
Satoru SATOH
Created:
2008-07-04 08:38:54 UTC
Size:
1.29 KB
patch
obsolete
>diff -up Spacewalk-Setup/bin/spacewalk-setup.usage Spacewalk-Setup/bin/spacewalk-setup >--- Spacewalk-Setup/bin/spacewalk-setup.usage 2008-07-04 16:44:38.000000000 +0900 >+++ Spacewalk-Setup/bin/spacewalk-setup 2008-07-04 16:43:36.000000000 +0900 >@@ -62,7 +62,7 @@ use constant DEFAULT_BACKUP_DIR => > > > >-my %opts = Spacewalk::Setup::parse_options(); >+my %opts = Spacewalk::Setup::parse_options($INC{'Spacewalk/Setup.pm'}); > > # Skip the logfile init, normally just used when called from install.pl, > # which already did this. >diff -up Spacewalk-Setup/lib/Spacewalk/Setup.pm.usage Spacewalk-Setup/lib/Spacewalk/Setup.pm >--- Spacewalk-Setup/lib/Spacewalk/Setup.pm.usage 2008-07-04 15:54:01.000000000 +0900 >+++ Spacewalk-Setup/lib/Spacewalk/Setup.pm 2008-07-04 17:07:40.000000000 +0900 >@@ -5,6 +5,7 @@ use warnings; > use strict; > > use Getopt::Long; >+use Pod::Usage; > use Symbol qw(gensym); > use IPC::Open3; > >@@ -44,6 +45,9 @@ my $DEBUG; > $DEBUG = 0; > > sub parse_options { >+ my $filepath = shift; >+ $filepath ||= $0; >+ > my @valid_opts = ( > "help", > "skip-system-version-test", >@@ -78,7 +82,7 @@ sub parse_options { > } > > if ($opts{help}) { >- pod2usage(-exitstatus => 0, -verbose => 2); >+ pod2usage(-exitstatus => 0, -verbose => 1, -message => $usage, -input => $filepath); > } > > return %opts;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 454064
: 311017 |
311169
|
311172