diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-16 13:13:39 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-16 13:13:39 +0000 |
commit | ab5e8767fafb2d62213e3f1558ead2882bc65c05 (patch) | |
tree | 852077324a6b9a65dead66c2b4854c455fed097d /corepkgs/nar | |
parent | c78bf115248f62fa355e7a9b2b9532b37e693085 (diff) | |
download | guix-ab5e8767fafb2d62213e3f1558ead2882bc65c05.tar.gz |
* Get nix-push to work again.
* Fixed svn:ignore on externals/.
Diffstat (limited to 'corepkgs/nar')
-rw-r--r-- | corepkgs/nar/nar.sh.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in index 9f96b03ab3..c92ef8e25a 100644 --- a/corepkgs/nar/nar.sh.in +++ b/corepkgs/nar/nar.sh.in @@ -4,9 +4,9 @@ export PATH=/bin:/usr/bin echo "packing $path into $out..." mkdir $out || exit 1 -tmp=$out/tmp -@bindir@/nix --dump --path "$path" | bzip2 > $out/tmp || exit 1 +dst=$out/`basename $path`.nar.bz2 +@bindir@/nix --dump "$path" | bzip2 > $dst || exit 1 -md5=$(md5sum -b $tmp | cut -c1-32) +md5=$(md5sum -b $dst | cut -c1-32) if test $? != 0; then exit 1; fi -mv $out/tmp $out/$md5-`basename $path`.nar.bz2 || exit 1 +echo $md5 > $out/md5 || exit 1 |