| Summary: | Modification of command running methods to allow process access. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Andrew Robinson <arobinso> | ||||||||
| Component: | RPM | Assignee: | Alexander Kurtakov <akurtakov> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | linux.rpm-inbox | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 0.9.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Patch looks good. Please add the copyright header and give us an example patch of using this in specfile editor and I'll apply it. Created attachment 201325 [details]
Updated patch.
Added header to BufferedProcessInputStream.java.
Modified runCommand to also allow process cancellation and access to the process's return code.
Implemented examples of new functionality of the utilities in retrievePackageList method and RPMExportOperation.
Created attachment 201431 [details]
Updated patch.
Format fix.
Works perfect. Applied in master 681e714..da10352 master -> master with cosmetic changes. |
Created attachment 200452 [details] The patch described in the bug. As it stands now, when a command is run with the runCommandToInputStream method from the RPM Utilities, the process that calls the method cannot interface with the run command. This patch adds an object that extends BufferedInputStream that allows cancellation of the run command and retrieval of the command's return code.