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 666242 Details for
Bug 888887
Fix ppc64p7 handling in pungi
[?]
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]
Ugly hack
0001-Set-yumarch-to-ppc64-for-the-BuildInstall-stage.patch (text/plain), 1.74 KB, created by
David Aquilina
on 2012-12-19 17:39:29 UTC
(
hide
)
Description:
Ugly hack
Filename:
MIME Type:
Creator:
David Aquilina
Created:
2012-12-19 17:39:29 UTC
Size:
1.74 KB
patch
obsolete
>diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py >index a2ac2fc..3d77101 100644 >--- a/src/pypungi/__init__.py >+++ b/src/pypungi/__init__.py >@@ -28,6 +28,8 @@ import pylorax > from fnmatch import fnmatch > > >+buildinstallstage = None >+ > class MyConfigParser(ConfigParser.ConfigParser): > """A subclass of ConfigParser which does not lowercase options""" > >@@ -204,6 +206,7 @@ class Pungi(pypungi.PungiBase): > os.remove(os.path.join(thisrepo.cachedir, 'repomd.xml')) > > def _inityum(self): >+ global buildinstallstage > """Initialize the yum object. Only needed for certain actions.""" > > # Create a yum object to use >@@ -233,7 +236,10 @@ class Pungi(pypungi.PungiBase): > if arch == 'i386': > yumarch = 'athlon' >- elif arch == 'ppc': >- yumarch = 'ppc64p7' >+ elif arch in ['ppc', 'ppc64']: >+ if buildinstallstage: >+ yumarch = 'ppc64' >+ else: >+ yumarch = 'ppc64p7' > elif arch == 'sparc': > yumarch = 'sparc64v' > elif arch == 'arm': >@@ -295,7 +301,7 @@ class Pungi(pypungi.PungiBase): > > if po.arch == 'src' or 'debuginfo' in po.name: > return False >- >+ > return True > > def verifyCachePkg(self, po, path): # Stolen from yum >@@ -883,8 +889,12 @@ class Pungi(pypungi.PungiBase): > self._makeMetadata(path, cachedir, repoview=False) > > def doBuildinstall(self): >+ global buildinstallstage > """Run lorax on the tree.""" > >+ # power needs the arch changed depending on what stage we're in >+ buildinstallstage = True >+ > # the old ayum object has transaction data that confuse lorax, reinit. > self._inityum() > >-- >1.7.1 >
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 888887
: 666242