1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-25 09:53:22 -05:00

Appends false dates to root/CVS/Entries from gbootroot, so root can't

edit these files from local replacements directory.
This commit is contained in:
freesource 2001-12-11 06:14:40 +00:00
parent 6a0c30c731
commit 7b4c657697

View File

@ -15,6 +15,22 @@ if ($ARGV[0] && $ARGV[0] eq "configure") {
} }
# Before doing anything else, append CVS Entries files with fictional dates
# so replacements can't be edited. This is because make-debian-x11 shares
# a CVS/Entries file in /root with gbootroot. Note: This will be done
# over and over again, but usually a new gbootroot is installed so it isn't
# an issue.
my $Entries = << "ENTRIES";
/README-debian-X11/1.4/Thu Nov 8 06:16:29 2001//
/make_swapfile/1.2/Thu Nov 8 06:16:29 2001//
/setup-debian-X11/1.7/Thu Dec 6 18:36:05 2001//
ENTRIES
my $root_entry = "/usr/share/gbootroot/yard/Replacements/root/CVS/Entries";
if ( -f $root_entry ) {
open(ENTRY, ">>$root_entry") or warn "Couldn't open $root_entry: $!\n";
print ENTRY $Entries;
close(ENTRY) or warn "Couldn't close $root_entry\n";
}
my $answer = get("make-debian-x11/make_debian_x11"); my $answer = get("make-debian-x11/make_debian_x11");