# Patch snarfed from # http://http.debian.net/debian/pool/main/k/kobodeluxe/kobodeluxe_0.5.1-8.debian.tar.xz # # Disable reading of configs, graphics, and data from the current directory. # So it's safe to run kobodeluxe from anywhere w/o worry about an attacker # feeding it bad data. --- kobodeluxe-0.5.1.orig/kobo.cpp +++ kobodeluxe-0.5.1/kobo.cpp @@ -141,21 +141,21 @@ * Graphics data */ /* Current dir; from within the build tree */ - fmap->addpath("GFX", "./data/gfx"); + //fmap->addpath("GFX", "./data/gfx"); /* Real data dir */ fmap->addpath("GFX", "DATA>>gfx"); /* Current dir */ - fmap->addpath("GFX", "./gfx"); + //fmap->addpath("GFX", "./gfx"); /* * Sound data */ /* Current dir; from within the build tree */ - fmap->addpath("SFX", "./data/sfx"); + //fmap->addpath("SFX", "./data/sfx"); /* Real data dir */ fmap->addpath("SFX", "DATA>>sfx"); /* Current dir */ - fmap->addpath("SFX", "./sfx"); + //fmap->addpath("SFX", "./sfx"); /* * Score files (user and global) @@ -173,7 +173,7 @@ /* System local */ fmap->addpath("CONFIG", SYSCONF_DIR); /* In current dir (last resort) */ - fmap->addpath("CONFIG", "./"); + //fmap->addpath("CONFIG", "./"); } /tests/guix-download.sh'>logtreecommitdiff
path: root/tests/guix-download.sh
AgeCommit message (Expand)Author
2024-01-22guix: download: Add support for git repositories....* guix/scripts/download.scm (git-download-to-store*): Add new variable. (copy-recursively-without-dot-git): New variable. (git-download-to-file): Add new variable. (show-help): Add 'git', 'commit', 'branch' and 'recursive'options help message. (%default-options): Add default value for 'git-reference' and 'recursive' options. (%options): Add 'git', 'commit', 'branch' and 'recursive' command line options. (guix-download) [hash]: Compute hash with 'file-hash*' instead of 'port-hash' from (gcrypt hash) module. This allows us to compute hashes for directories. * doc/guix.texi (Invoking guix-download): Add @item entries for `git', `commit', `branch' and `recursive' options. Add a paragraph in the introduction. * tests/guix-download.sh: New tests. Move variables and trap definition to the top of the file. Change-Id: Ic2c428dca4cfcb0d4714ed361a4c46609339140a Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Romain GARBAGE
2023-04-21tests: Fix checks for expected failures....Addresses <https://issues.guix.gnu.org/62406>. With 'set -e', a return status inverted with '!' does not cause the shell to exit immediately. Instead use '&& false' to indicate an expected failure. * tests/guix-archive.sh, tests/guix-build-branch.sh, tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh, tests/guix-environment-container.sh, tests/guix-environment.sh, tests/guix-gc.sh, tests/guix-git-authenticate.sh, tests/guix-graph.sh, tests/guix-hash.sh, tests/guix-home.sh, tests/guix-pack-relocatable.sh, tests/guix-pack.sh, tests/guix-package-aliases.sh, tests/guix-package-net.sh, tests/guix-package.sh, tests/guix-refresh.sh, tests/guix-shell.sh, tests/guix-style.sh, tests/guix-system.sh: Replace uses of '! ...' with '... && false' or `test ! ...` as appropriate. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Eric Bavier