Debian Patching: Patch Remove fails with stacktrace if patch does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Jessica Castelino |
Bug Description
Brief Description
-----------------
An attempt to remove a patch that does not exist, causes sw-patch-
We need better handling in this case.
sudo sw-patch remove BLAH
An internal error has occurred. Please check /var/log/
2023-01-
Traceback (most recent call last):
File "/usr/lib/
self.result = application(
File "/usr/lib/
return self.v1(environ, start_response)
File "/usr/lib/
return self.applicatio
File "/usr/lib/
return super(Pecan, self)._
File "/usr/lib/
self.
File "/usr/lib/
result = controller(*args, **kwargs)
File "/usr/lib/
result = pc.patch_
File "/usr/lib/
ver = self.patch_
KeyError: 'BLAH'
2023-01-
2023-01-
2023-01-
2023-01-
Severity
--------
Minor
Steps to Reproduce
------------------
sw-patch remove <Patch-
Expected Behavior
------------------
Better error handling and readable error
Actual Behavior
----------------
sw-patch-
Reproducibility
---------------
Reproducible
System Configuration
-------
All
Branch/Pull Time/Commit
-------
24th Jan, 2023
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Jessica Castelino (jcasteli) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.update |
Fix proposed to branch: master /review. opendev. org/c/starlingx /update/ +/871670
Review: https:/