Browse Source

Fix astronautpkg for fakeroot, again.

master
mid-kid 8 years ago
parent
commit
e4c57caaed
  1. 2
      astronaut/astronaut
  2. 3
      astronaut/astronautpkg

2
astronaut/astronaut

@ -192,7 +192,7 @@ getfile() {
}
extrafile() {
cp "$(dirname "$_satellite")/extrafiles/$_satname/$1" "$dir_build/$1"
cp "$(dirname "$_satellite")/extrafiles/$name/$1" "$dir_build/$1"
}
dlextract() {

3
astronaut/astronautpkg

@ -4,7 +4,8 @@
# This may also serve as an example on how you can wrap astronaut to package in any format.
_fakeroot="$(command -v fakeroot && echo 'fakeroot' || true)"
_fakeroot="$(command -v fakeroot || true)"
[ "$_fakeroot" ] && _fakeroot='fakeroot'
if [ ! "$_fakeroot" -a "$(id -u)" != "0" ]; then
echo 'This script has to be run as root, or you need fakeroot installed.' 1>&2

Loading…
Cancel
Save