* Compress Nix archives when pushing them.
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ while (<CONFFILE>) {
|
||||
my $fn = $1;
|
||||
next if $fn =~ /\.\./;
|
||||
next if $fn =~ /\//;
|
||||
next unless $fn =~ /-([0-9a-z]{32})(-s-([0-9a-z]{32}))?\.nar/;
|
||||
next unless $fn =~ /-([0-9a-z]{32})(-s-([0-9a-z]{32}))?\.nar.bz2$/;
|
||||
my $hash = $1;
|
||||
my $fshash = $3;
|
||||
|
||||
|
||||
+4
-2
@@ -33,7 +33,7 @@ foreach my $hash (@ARGV) {
|
||||
if ($path =~ /-s-([0-9a-z]{32}).nix$/) {
|
||||
$name = "$name-s-$1";
|
||||
}
|
||||
$name = $name . ".nar";
|
||||
$name = $name . ".nar.bz2";
|
||||
|
||||
# Construct a Fix expression that creates a Nix archive.
|
||||
my $fixexpr =
|
||||
@@ -65,4 +65,6 @@ foreach my $hash (@ARGV) {
|
||||
}
|
||||
|
||||
# Push the prebuilts to the server. !!! FIXME
|
||||
system "rsync -av -e ssh @pushlist eelco\@losser.st-lab.cs.uu.nl:/home/eelco/public_html/nix-dist/";
|
||||
if (scalar @pushlist > 0) {
|
||||
system "rsync -av -e ssh @pushlist eelco\@losser.st-lab.cs.uu.nl:/home/eelco/public_html/nix-dist/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user