Commit 7c66fe3
committed
Create transaction lock file after rebuilddb
Since 79b26f1 reading the keys is also
protected by a transaction lock.
A missing lock file will trip up users without write permissing to the
rpmdb directory. RPM will try to create the file but fails.
Normally the lock file is created during system installation. So
rebuilding the rpmdb must also create the file to keep the rpmdb
fully functional.
Move the creation and freeing of the lock and it's path into separate
functions.
Related: rpm-software-management#38861 parent 0632d91 commit 7c66fe3
2 files changed
+40
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
584 | 592 | | |
585 | 593 | | |
586 | 594 | | |
587 | | - | |
588 | | - | |
| 595 | + | |
589 | 596 | | |
590 | 597 | | |
591 | 598 | | |
| |||
1063 | 1070 | | |
1064 | 1071 | | |
1065 | 1072 | | |
1066 | | - | |
| 1073 | + | |
| 1074 | + | |
1067 | 1075 | | |
1068 | 1076 | | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
| 1077 | + | |
1075 | 1078 | | |
1076 | 1079 | | |
1077 | 1080 | | |
| |||
1087 | 1090 | | |
1088 | 1091 | | |
1089 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1090 | 1112 | | |
1091 | 1113 | | |
1092 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
570 | 571 | | |
| 572 | + | |
571 | 573 | | |
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
| 577 | + | |
575 | 578 | | |
| 579 | + | |
576 | 580 | | |
577 | 581 | | |
578 | 582 | | |
| |||
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| 591 | + | |
587 | 592 | | |
| 593 | + | |
588 | 594 | | |
589 | 595 | | |
590 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
591 | 599 | | |
592 | 600 | | |
593 | 601 | | |
| |||
0 commit comments