2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-10-19 10:10:34 +00:00

fix(genesis): finish publisher recovery

This commit is contained in:
Vinícius Ferrão
2026-08-24 23:25:15 -03:00
parent 09336c27a8
commit f1eb5e0cb0
2 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -185,8 +185,12 @@ recover_interrupted_apt_publication() {
else
mv -- "$backup" "$destination"
fi
done < <(find "$APT_DIR/dists" "$APT_DIR/pool" -depth \
-name '.*.previous.*' -print0 2>/dev/null)
done < <(
find "$APT_DIR" -maxdepth 1 -type f \
-name '.xcat-dep.asc.previous.*' -print0 2>/dev/null
find "$APT_DIR/dists" "$APT_DIR/pool" -depth \
-name '.*.previous.*' -print0 2>/dev/null
)
find "$APT_DIR" -maxdepth 1 -type d -name '.xcat-apt.*' \
-exec rm -rf -- {} +
find "$APT_DIR" -type f \
+3 -3
View File
@@ -68,6 +68,9 @@ my $force_unlock = 0;
my @HELD_LOCKS;
my $LOCK_OWNER_PID;
my ($COMMON_STAGE, $COMMON_DESTINATION, $COMMON_BACKUP);
for my $sig (qw(INT TERM HUP)) {
$SIG{$sig} = sub { exit 1; };
}
GetOptions(
'repo-root=s' => \$repo_root,
@@ -1395,9 +1398,6 @@ END {
_restore_common_repository();
_release_locks_if_owner();
}
for my $sig (qw(INT TERM HUP)) {
$SIG{$sig} = sub { exit 1; };
}
sub read_os_release {
my ($path) = @_;