Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: rox-0install.eclass
Date: Tue, 04 Dec 2007 21:27:03
Message-Id: E1IzfI8-0006WF-7b@stork.gentoo.org
1 lack 07/12/04 21:26:56
2
3 Modified: rox-0install.eclass
4 Log:
5 Numerous QA fixes
6
7 Revision Changes Path
8 1.2 eclass/rox-0install.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox-0install.eclass?rev=1.2&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox-0install.eclass?rev=1.2&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox-0install.eclass?r1=1.1&r2=1.2
13
14 Index: rox-0install.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/rox-0install.eclass,v
17 retrieving revision 1.1
18 retrieving revision 1.2
19 diff -u -r1.1 -r1.2
20 --- rox-0install.eclass 4 Dec 2007 17:07:52 -0000 1.1
21 +++ rox-0install.eclass 4 Dec 2007 21:26:55 -0000 1.2
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/rox-0install.eclass,v 1.1 2007/12/04 17:07:52 lack Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/rox-0install.eclass,v 1.2 2007/12/04 21:26:55 lack Exp $
27
28 # ROX-0install eclass Version 1
29
30 @@ -21,7 +21,7 @@
31 inherit rox
32
33 DEPEND="${DEPEND}
34 - rox-base/zeroinstall-injector"
35 + >=rox-base/zeroinstall-injector-0.31"
36
37 # Some locations for ZEROINSTALL
38 NATIVE_FEED_DIR="/usr/share/0install.net/native_feeds"
39 @@ -41,10 +41,9 @@
40 # path - The path where the implementation will be installed
41 # IE, the final edited xml will be at <path>/<basename of src>
42 0install_native_feed() {
43 - local src="${1}"; shift
44 - local path="${1}"; shift
45 - local feedfile=$(basename "${src}")
46 - local dest="${path}/$feedfile"
47 + local src=$1 path=$2
48 + local feedfile=${src##*/}
49 + local dest="${path}/${feedfile}"
50
51 0distutils "${src}" > tmp.native_feed || die "0distutils feed edit failed"
52
53 @@ -60,11 +59,11 @@
54 )
55
56 local feedname
57 - feedname=$(0distutils -e "${src}") || "0distutils URI escape failed"
58 + feedname=$(0distutils -e "${src}") || die "0distutils URI escape failed"
59 dosym "${dest}" "${NATIVE_FEED_DIR}/${feedname}"
60
61 local cachedname
62 - cachedname=$(0distutils -c "${src}") || "0distutils URI escape failed"
63 + cachedname=$(0distutils -c "${src}") || die "0distutils URI escape failed"
64 dosym "${path}/.DirIcon" "${ICON_CACHE_DIR}/${cachedname}"
65 }
66
67 @@ -75,16 +74,16 @@
68
69 # Now search for the feed, and install it if found.
70 local search_list="${LOCAL_FEED_SRC} ${APPNAME}/${APPNAME}.xml ${APPNAME}.xml"
71 - local installed=false
72 + local installed=""
73 for feed in ${search_list}; do
74 if [[ -f "${feed}" ]]; then
75 0install_native_feed "${feed}" "${APPDIR}/${APPNAME}"
76 - installed=true
77 + installed="true"
78 break
79 fi
80 done
81
82 - if ! $installed; then
83 + if [[ -z ${installed} ]]; then
84 ewarn "No native feed found - This application will not be found by 0launch."
85 fi
86 }
87
88
89
90 --
91 gentoo-commits@g.o mailing list