summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-04-21 16:30:10 +0000
committerTimo Teras <timo.teras@iki.fi>2008-04-21 16:30:10 +0000
commit823283edca0d8403742999917a4ff0698ad641cb (patch)
treec023160837e616ca5ff5e85cc754cd3e17bd1d2e /src/package.c
parent951602e551bc56b433f7c6d908998b6289890b09 (diff)
downloadapk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.gz
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.bz2
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.xz
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.zip
Argument parsing. Some other stuff too.
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/package.c b/src/package.c
index 88aef70..04ec2be 100644
--- a/src/package.c
+++ b/src/package.c
@@ -362,26 +362,6 @@ int apk_pkg_run_script(struct apk_package *pkg, const char *root,
return -1;
}
- /* FIXME: Remove this ugly kludge */
- if (strcmp(pkg->name->name, "busybox") == 0 &&
- type == APK_SCRIPT_POST_INSTALL) {
- apk_message("Create busybox links");
-
- pid = fork();
- if (pid == -1)
- return -1;
- if (pid == 0) {
- chroot(root);
- execl("/bin/busybox", "busybox", "--install", "-s", NULL);
- exit(1);
- }
- waitpid(pid, &status, 0);
- if (WIFEXITED(status))
- return WEXITSTATUS(status);
- return -1;
-
- }
-
return 0;
}