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 699887 Details for
Bug 903520
Packages from Google Chrome do not promote to environment.
[?]
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]
Patch for checking error states in package association api
0001-pulp-api-throwing-errors-when-package-association-fa.patch (text/plain), 1.41 KB, created by
Tomas Strachota
on 2013-02-20 09:12:09 UTC
(
hide
)
Description:
Patch for checking error states in package association api
Filename:
MIME Type:
Creator:
Tomas Strachota
Created:
2013-02-20 09:12:09 UTC
Size:
1.41 KB
patch
obsolete
>From 4c21ed77c8b3b7a21ffca0b9a338fb409e6e8136 Mon Sep 17 00:00:00 2001 >From: Tomas Strachota <tstrachota@redhat.com> >Date: Wed, 20 Feb 2013 11:05:10 +0100 >Subject: [PATCH] pulp api - throwing errors when package association fails > >--- > src/lib/resources/pulp.rb | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/src/lib/resources/pulp.rb b/src/lib/resources/pulp.rb >index c323440..36d035d 100644 >--- a/src/lib/resources/pulp.rb >+++ b/src/lib/resources/pulp.rb >@@ -248,12 +248,16 @@ module Resources > def add_repo_packages repo_package_tuples > associate_path = "/pulp/api/services/associate/packages/" > body = post(associate_path, {:package_info=>repo_package_tuples}.to_json, self.default_headers).body >+ errors = JSON.parse(body) >+ raise RuntimeError, _("Packages '%s' not found!") % errors.keys.join(', ') if not errors.empty? > end > > #repo_package_tuples = list of package repo tuples in the format [[[package_name, checksum],[repo_id]]....] > def delete_repo_packages repo_package_tuples > dissociate_path = "/pulp/api/services/disassociate/packages/" > body = post(dissociate_path, {:package_info=>repo_package_tuples}.to_json, self.default_headers).body >+ errors = JSON.parse(body) >+ raise RuntimeError, _("Packages '%s' not found!") % errors.keys.join(', ') if not errors.empty? > end > > >-- >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 903520
: 699887