update/sw-patch
Al Bailey 4624457333 Fix runtime patching error during upgrade
During an upgrade, multiple patch directories may
be detected, and the patch controller may attempt to
iterate over those folders to determine the packages.

The code that iterates over those folder can raise
 RuntimeError: dictionary changed size during iteration
if the directory does not exist, but a package does.

The fix is to iterate over the copy of the list.

This issue only occurs in a duplex env, when the neighbor
sync is being done.  It will be encountered when a patch
import is invoked after the older directory is removed.

Test Plan:
   AIO-DX create multiple folders under /var/www/pages/feed
  and trigger a patch-import

Closes-Bug: #2017916
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ic78d30019bdaa93b9493bf57c7122f6de7cc6dab
2023-04-27 16:58:18 +00:00
..
bin Update package extraction from CentOS for Debian 2022-09-13 10:44:38 -04:00
cgcs-patch Fix runtime patching error during upgrade 2023-04-27 16:58:18 +00:00
debian Debian: Add gir1.2-ostree-1.0 deb package 2023-03-28 19:09:31 +00:00
scripts Change on GPG pinentry settings 2023-03-06 14:33:20 +00:00