Browse Source
- Use 'less' as default pager instead of 'pager'. - Fix configure.c to work without hard links.android-5
Fredrik Fornwall
9 years ago
3 changed files with 29 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
diff -u -r ../dpkg-1.18.4/lib/dpkg/dpkg.h ./lib/dpkg/dpkg.h
|
|||
--- ../dpkg-1.18.4/lib/dpkg/dpkg.h 2015-12-12 15:49:24.000000000 -0500
|
|||
+++ ./lib/dpkg/dpkg.h 2016-03-03 17:30:57.812372682 -0500
|
|||
@@ -92,7 +92,7 @@
|
|||
#define MAXUPDATES 250 |
|||
|
|||
#define DEFAULTSHELL "sh" |
|||
-#define DEFAULTPAGER "pager"
|
|||
+#define DEFAULTPAGER "less"
|
|||
|
|||
#define MD5HASHLEN 32 |
|||
#define MAXTRIGDIRECTIVE 256 |
@ -0,0 +1,16 @@ |
|||
diff -u -r ../dpkg-1.18.4/src/configure.c ./src/configure.c
|
|||
--- ../dpkg-1.18.4/src/configure.c 2015-11-26 18:53:41.000000000 -0500
|
|||
+++ ./src/configure.c 2016-03-03 17:41:42.494272593 -0500
|
|||
@@ -496,8 +496,10 @@
|
|||
pkg_name(pkg, pnaw_nonambig), cdr2.buf, |
|||
strerror(errno)); |
|||
if (!(what & CFOF_USER_DEL)) |
|||
- if (link(cdr.buf, cdr2.buf))
|
|||
- warning(_("%s: failed to link '%.250s' to '%.250s': %s"),
|
|||
+ /** Termux modification: Use rename(2) instead of link(2), to avoid hard
|
|||
+ links which does not work on Android 6.0 or later. */
|
|||
+ if (rename(cdr.buf, cdr2.buf))
|
|||
+ warning(_("%s: failed to rename '%.250s' to '%.250s': %s"),
|
|||
pkg_name(pkg, pnaw_nonambig), cdr.buf, |
|||
cdr2.buf, strerror(errno)); |
|||
/* Fall through. */ |
Loading…
Reference in new issue