openwrt-owl/tools/ipkg-utils/patches/140-portability.patch

20 lines
362 B
Diff

--- a/ipkg-build
+++ b/ipkg-build
@@ -11,6 +11,8 @@ set -e
version=1.0
+TAR="${TAR:-$(which tar)}"
+
ipkg_extract_value() {
sed -e "s/^[^:]*:[[:space:]]*//"
}
--- a/ipkg-make-index
+++ b/ipkg-make-index
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# $Id: ipkg-make-index,v 1.20 2003/10/30 02:32:09 jamey Exp $
import sys, os, posixpath