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 601912 Details for
Bug 838033
patch cluster deployment fails on solaris 10 clients
[?]
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.
Python trace when opening the zip file
zip64.trace (text/plain), 5.15 KB, created by
pierre.casenove
on 2012-08-02 09:39:05 UTC
(
hide
)
Description:
Python trace when opening the zip file
Filename:
MIME Type:
Creator:
pierre.casenove
Created:
2012-08-02 09:39:05 UTC
Size:
5.15 KB
patch
obsolete
>pm.py(47): pkgdir = "" >pm.py(48): ret = 0 >pm.py(51): saved_cwd = os.getcwd() >pm.py(53): try: >pm.py(54): if os.path.isdir(path): > --- modulename: posixpath, funcname: isdir >posixpath.py(194): try: >posixpath.py(195): st = os.stat(path) >posixpath.py(198): return stat.S_ISDIR(st.st_mode) > --- modulename: stat, funcname: S_ISDIR >stat.py(46): return S_IFMT(mode) == S_IFDIR > --- modulename: stat, funcname: S_IFMT >stat.py(30): return mode & 0170000 >pm.py(58): if not zipfile.is_zipfile(path): > --- modulename: zipfile, funcname: is_zipfile >zipfile.py(68): try: >zipfile.py(69): fpin = open(filename, "rb") >zipfile.py(70): endrec = _EndRecData(fpin) > --- modulename: zipfile, funcname: _EndRecData >zipfile.py(83): fpin.seek(-22, 2) # Assume no archive comment. >zipfile.py(84): filesize = fpin.tell() + 22 # Get file size >zipfile.py(85): data = fpin.read() >zipfile.py(86): if data[0:4] == stringEndArchive and data[-2:] == "\000\000": >zipfile.py(87): endrec = struct.unpack(structEndArchive, data) >zipfile.py(88): endrec = list(endrec) >zipfile.py(89): endrec.append("") # Append the archive comment >zipfile.py(90): endrec.append(filesize - 22) # Append the record start offset >zipfile.py(91): return endrec >zipfile.py(71): fpin.close() >zipfile.py(72): if endrec: >zipfile.py(73): return True # file has correct magic number >pm.py(62): cmdstr = "unzip -u %s -d %s" % (path, tdir) >pm.py(63): ret, x = commands.getstatusoutput(cmdstr) > --- modulename: commands, funcname: getstatusoutput >commands.py(52): import os >commands.py(53): pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') >commands.py(54): text = pipe.read() >commands.py(55): sts = pipe.close() >commands.py(56): if sts is None: sts = 0 >commands.py(57): if text[-1:] == '\n': text = text[:-1] >commands.py(58): return sts, text >pm.py(65): if ret != 0: >pm.py(69): zf = zipfile.ZipFile(path) > --- modulename: zipfile, funcname: __init__ >zipfile.py(184): if compression == ZIP_STORED: >zipfile.py(185): pass >zipfile.py(192): self.debug = 0 # Level of printing: 0 through 3 >zipfile.py(193): self.NameToInfo = {} # Find file info given name >zipfile.py(194): self.filelist = [] # List of ZipInfo instances for archive >zipfile.py(195): self.compression = compression # Method of compression >zipfile.py(196): self.mode = key = mode.replace('b', '')[0] >zipfile.py(199): if isinstance(file, basestring): >zipfile.py(200): self._filePassed = 0 >zipfile.py(201): self.filename = file >zipfile.py(202): modeDict = {'r' : 'rb', 'w': 'wb', 'a' : 'r+b'} >zipfile.py(203): self.fp = open(file, modeDict[mode]) >zipfile.py(209): if key == 'r': >zipfile.py(210): self._GetContents() > --- modulename: zipfile, funcname: _GetContents >zipfile.py(229): try: >zipfile.py(230): self._RealGetContents() > --- modulename: zipfile, funcname: _RealGetContents >zipfile.py(239): fp = self.fp >zipfile.py(240): endrec = _EndRecData(fp) > --- modulename: zipfile, funcname: _EndRecData >zipfile.py(83): fpin.seek(-22, 2) # Assume no archive comment. >zipfile.py(84): filesize = fpin.tell() + 22 # Get file size >zipfile.py(85): data = fpin.read() >zipfile.py(86): if data[0:4] == stringEndArchive and data[-2:] == "\000\000": >zipfile.py(87): endrec = struct.unpack(structEndArchive, data) >zipfile.py(88): endrec = list(endrec) >zipfile.py(89): endrec.append("") # Append the archive comment >zipfile.py(90): endrec.append(filesize - 22) # Append the record start offset >zipfile.py(91): return endrec >zipfile.py(241): if not endrec: >zipfile.py(243): if self.debug > 1: >zipfile.py(245): size_cd = endrec[5] # bytes in central directory >zipfile.py(246): offset_cd = endrec[6] # offset of central directory >zipfile.py(247): self.comment = endrec[8] # archive comment >zipfile.py(249): x = endrec[9] - size_cd >zipfile.py(251): concat = x - offset_cd >zipfile.py(252): if self.debug > 2: >zipfile.py(255): self.start_dir = offset_cd + concat >zipfile.py(256): fp.seek(self.start_dir, 0) >zipfile.py(257): total = 0 >zipfile.py(258): while total < size_cd: >zipfile.py(259): centdir = fp.read(46) >zipfile.py(260): total = total + 46 >zipfile.py(261): if centdir[0:4] != stringCentralDir: >zipfile.py(262): raise BadZipfile, "Bad magic number for central directory" >zipfile.py(231): except BadZipfile: >zipfile.py(232): if not self._filePassed: >zipfile.py(233): self.fp.close() >zipfile.py(234): self.fp = None >zipfile.py(235): raise >pm.py(118): os.chdir(saved_cwd) >pm.py(121): if ret == 0: >pm.py(122): shutil.rmtree(tdir) >
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 Raw
Actions:
View
Attachments on
bug 838033
: 601912 |
649197
|
649550