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 952174 Details for
Bug 1158155
Proxy server does not support Ubuntu/Debian packages
[?]
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]
Trivial Debian Support
debian-proxy.diff (text/plain), 1.65 KB, created by
David Holland
on 2014-10-30 14:45:39 UTC
(
hide
)
Description:
Trivial Debian Support
Filename:
MIME Type:
Creator:
David Holland
Created:
2014-10-30 14:45:39 UTC
Size:
1.65 KB
patch
obsolete
>diff --git a/proxy/proxy/broker/rhnRepository.py b/proxy/proxy/broker/rhnRepository.py >index 1328cb2..bcac6a9 100644 >--- a/proxy/proxy/broker/rhnRepository.py >+++ b/proxy/proxy/broker/rhnRepository.py >@@ -86,6 +86,8 @@ class Repository(rhnRepository.Repository): > # appropriate filename. > if type(pkgFilename) == types.ListType: > arch = pkgFilename[3] >+ # Not certain if anything is needed here for Debian, but since what I've tested >+ # works. Leave it alone. > if isSolarisArch(arch): > pkgFilename = "%s-%s-%s.%s.pkg" % \ > (pkgFilename[0], >@@ -234,6 +236,8 @@ class Repository(rhnRepository.Repository): > extension = "rpm" > if isSolarisArch(arch): > extension = "pkg" >+ if isDebianArch(arch): >+ extension = "deb" > > filename = "%s-%s-%s.%s.%s" % (package[0], package[1], > package[2], package[4], extension) >@@ -388,6 +392,12 @@ def isSolarisArch(arch): > """ > return arch.find("solaris") != -1 > >+def isDebianArch(arch): >+ """ >+ Returns true if the given arch string represents a Debian architecture.. >+ """ >+ return arch[-4:] == "-deb" >+ > def computePackagePaths(nvrea, source=0, prepend="", checksum=None): > """ Finds the appropriate paths, prepending something if necessary """ > paths = [] >@@ -403,6 +413,8 @@ def computePackagePaths(nvrea, source=0, prepend="", checksum=None): > extension = "rpm" > if isSolarisArch(pkgarch): > extension = "pkg" >+ if isDebianArch(pkgarch): >+ extension = "deb" > > version = nvrea[1] > epoch = nvrea[3]
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 1158155
: 952174