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 657841 Details for
Bug 879459
the postdate.pl script needs to set private vendor/make to public if the cert has become public
[?]
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]
the patch including setVendorMakePublic() function.
patch.diff (text/plain), 2.13 KB, created by
Tony Fu
on 2012-12-05 00:40:39 UTC
(
hide
)
Description:
the patch including setVendorMakePublic() function.
Filename:
MIME Type:
Creator:
Tony Fu
Created:
2012-12-05 00:40:39 UTC
Size:
2.13 KB
patch
obsolete
>Index: hwcert.pl >=================================================================== >RCS file: /cvs/qa/hwcert/hwcert.pl,v >retrieving revision 1.148.2.10 >retrieving revision 1.148.2.9 >diff -r1.148.2.10 -r1.148.2.9 >593a594 >> >700,711c701 >< # if the cert is only in 'hw_private_entry group, it has become a public cert >< my $updated_bug = new Bugzilla::Bug($id, $userid); >< my $groups_obj = $updated_bug->groups; >< my @checking_groups; >< >< foreach my $group (@$groups_obj) { >< next if !$group->{'ison'}; >< push(@checking_groups, $group); >< } >< if (@checking_groups == 1 && $checking_groups[0]->{'name'} eq HW_CATALOG_ENTRY_PRIVATE) { >< $is_public_cert = 1; >< } >--- >> >807c797 >< $cert_info{'classification'} = $classification; >--- >> $cert_info{'classification'} = $classification; >3177,3180c3167,3170 >< my $update_query = " UPDATE cert_records "; >< $update_query .= " SET product_url = $product_url, support_url = $support_url "; >< $update_query .= " WHERE id = $cid"; >< SendSQL2($update_query); >--- >> my $query = " UPDATE cert_records "; >> $query .= " SET product_url = $product_url, support_url = $support_url "; >> $query .= " WHERE id = $cid"; >> SendSQL2($query); >3360,3385d3349 >< sub setVendorMakePublic { >< my ($vendor, $make) = @_; >< >< my $vendor_obj = Hwcert::Vendor::get_vendor_by_name($vendor); >< my $vendor_id = $vendor_obj->{'id'}; >< my $vendor_name = $vendor_obj->{'description'}; >< my $is_public_vendor = $vendor_obj->{'is_public'}; >< if (!$vendor_id) { >< Hwcert::Vendor::vendor_add(undef, $vendor, 1, undef, undef, undef); >< } >< elsif (!$is_public_vendor) { >< Hwcert::Vendor::vendor_update(undef,undef, $vendor_name, 1, >< undef, undef, undef); >< } >< >< my $make_id = Hwcert::Vendor::get_id_from_make_name($vendor_id, $make); >< if (!$make_id) { >< # add make as a public make >< Hwcert::Vendor::approve_make($make, 1, $vendor_id); >< } >< else { >< # set is_public to 1 >< Hwcert::Vendor::update_make_is_public($make_id, 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 879459
: 657841