[zypp-devel] script to convert old locks to new
I attach script which converts old locks to new format. Problem is, that new locks (as PoolQuery) doesn't support version restrict. So convertor ignore version restrict. Due to this, converted locks is created in /tmp directory and you can check it before move it over old file. comments welcome Pepa
Josef Reidinger wrote:
I attach script which converts old locks to new format. Problem is, that new locks (as PoolQuery) doesn't support version restrict. So convertor ignore version restrict. Due to this, converted locks is created in /tmp directory and you can check it before move it over old file. comments welcome Pepa
Due to some emails which is sended non-public I change this script. Now support recognizing of new format - so it is save run this script if you have already converted file. also it replace locks file and save old to locks.old. One way which madres propose was integrate support for old locks directly to PoolQuery serializer. Disadvantage is that we need support another code and fix bugs on it (like mixing old and new format). Convert script is easy to maintain and need only one run to convert whole file. Still doesn't support version restrict due to missing support in PoolQuery. Pepa
participants (1)
-
Josef Reidinger