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 305059 Details for
Bug 445995
os.exit does not exist in fedora-cvs script
[?]
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]
replace os.exit by sys.exit
fedora-cvs.patch (text/plain), 1.42 KB, created by
Ruben Kerkhof
on 2008-05-11 11:49:56 UTC
(
hide
)
Description:
replace os.exit by sys.exit
Filename:
MIME Type:
Creator:
Ruben Kerkhof
Created:
2008-05-11 11:49:56 UTC
Size:
1.42 KB
patch
obsolete
>--- /usr/bin/fedora-cvs.orig 2008-05-11 15:35:40.000000000 +0200 >+++ /usr/bin/fedora-cvs 2008-05-11 15:41:45.000000000 +0200 >@@ -1,7 +1,6 @@ > #!/usr/bin/python > > import os >-import string > import sys > import commands > from OpenSSL import crypto >@@ -10,11 +9,11 @@ > ''' sample line "Subject: C=US, ST=North Carolina, O=Fedora Project, OU=Dennis Gilmore, CN=ausil/emailAddress=dennis@ausil.us" ''' > userCert = "" > if os.access(os.path.join(os.path.expanduser('~'),".fedora.cert"), os.R_OK): >- userCert = open(os.path.join(os.path.expanduser('~'),".fedora.cert"), "r").read() >+ userCert = open(os.path.join(os.path.expanduser('~'),".fedora.cert"), "r").read() > else: > print "!!! cannot read your ~/.fedora.cert file !!!" > print "!!! Ensure the file is readable and try again !!!" >- os.exit(1) >+ sys.exit(1) > myCert = crypto.load_certificate(1, userCert) > if myCert.has_expired(): > print "Certificate expired please get a new one" >@@ -23,7 +22,7 @@ > subjectLine = subject.split("CN=") > name = subjectLine[1].split("/") > return name[0] >- >+ > > def cvsco(user, module): > '''CVSROOT=:ext:ausil@cvs.fedoraproject.org:/cvs/extras/''' >@@ -49,7 +48,7 @@ > if len(sys.argv) < 2: > usage() > sys.exit(1) >- #the package we want to pull from cvs >+ #the package we want to pull from cvs > pkg = sys.argv > pkg.remove(sys.argv[0]) >
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 445995
: 305059