Commit 9503dd4
committed
Fix for issue #1639: make
Use `mv` instead of `cp` for backing up RPM builds. Moving saves time and disk space and preserves the original build timestamps.
Replaced the `util.run` call with `shutil.move`, following the suggestion from gemini-code-assist, then replaced `shutil.move` with `os.replace` to safely overwrite existing files.
Rename function backup_results to backup_build_results and replace self.backup with self.backup_on_clean for improved clarity and readability.mock --scrub=all correctly back up successful builds from the chroot1 parent d30ff4b commit 9503dd4
File tree
3 files changed
+31
-18
lines changed- mock/py/mockbuild
- releng/release-notes-next
3 files changed
+31
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 65 | | |
82 | 66 | | |
83 | 67 | | |
84 | | - | |
85 | | - | |
86 | 68 | | |
87 | 69 | | |
88 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
1046 | 1048 | | |
1047 | 1049 | | |
1048 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1049 | 1074 | | |
1050 | 1075 | | |
1051 | 1076 | | |
1052 | 1077 | | |
1053 | 1078 | | |
1054 | 1079 | | |
| 1080 | + | |
1055 | 1081 | | |
1056 | 1082 | | |
1057 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments