# HG changeset patch # User Pascal Bellard # Date 1299001358 -3600 # Node ID 3a8fccb4e5f74e9e098a0a2db58f425085afc4d8 # Parent c76da0738bea33f52f131c035a954f1fc2e6c82b tazpkg: extend convert .opkg support diff -r c76da0738bea -r 3a8fccb4e5f7 tazpkg --- a/tazpkg Fri Feb 04 19:42:33 2011 +0100 +++ b/tazpkg Tue Mar 01 18:42:38 2011 +0100 @@ -2818,6 +2818,10 @@ convert) # convert misc package format to .tazpkg check_for_package_file + if [ "$(dd if=$PACKAGE_FILE bs=8 count=1 skip=1 2> /dev/null)" \ + == "debian-b" ]; then + convert_deb + else case "$PACKAGE_FILE" in *.deb|*.udeb) convert_deb;; @@ -2831,7 +2835,8 @@ convert_ipk;; *) gettext "Unsupported format"; echo ;; - esac ;; + esac + fi ;; link) # link a package from another slitaz installation PACKAGE=$2