[Debian-live-changes] r2359 - dists/trunk/live-helper/functions

daniel at alioth.debian.org daniel at alioth.debian.org
Mon Jul 2 09:16:08 UTC 2007


Author: daniel
Date: 2007-07-02 09:16:07 +0000 (Mon, 02 Jul 2007)
New Revision: 2359

Added:
   dists/trunk/live-helper/functions/packagelist.sh
Removed:
   dists/trunk/live-helper/functions/packagelists.sh
Log:


Copied: dists/trunk/live-helper/functions/packagelist.sh (from rev 2342, dists/trunk/live-helper/functions/packagelists.sh)
===================================================================
--- dists/trunk/live-helper/functions/packagelist.sh	                        (rev 0)
+++ dists/trunk/live-helper/functions/packagelist.sh	2007-07-02 09:16:07 UTC (rev 2359)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# packagelists.sh - expands package list includes
+# Copyright (C) 2006-2007 Daniel Baumann <daniel at debian.org>
+#
+# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+# This is free software, and you are welcome to redistribute it
+# under certain conditions; see COPYING for details.
+
+set -e
+
+Expand_packagelist ()
+{
+	# ${1} List name
+	# ${2} Default path to search
+	# ${3} Fallback path to search (optional)
+
+	# Does list exist in default path?
+	if [ -e "${2}/${1}" ];
+	then
+		Expand_packagelist_file "${2}/${1}" "${@}"
+	else
+		# If list exists in fallback, include it.
+		if [ -n "${3}" ] && [ -e "${3}/${1}" ]
+		then
+			Expand_packagelist_file "${3}/${1}" "${@}"
+		fi
+	fi
+}
+
+Expand_packagelist_file ()
+{
+	local FILE="${1}"
+	shift
+	shift
+
+	for INCLUDE in `sed -ne 's/^#<include> \(.*\)/\1/gp' "${FILE}"`;
+	do
+		Expand_packagelist "${INCLUDE}" "${@}"
+	done
+	sed -ne 's/^\([^#].*\)/\1\n/gp' "${FILE}"
+}

Deleted: dists/trunk/live-helper/functions/packagelists.sh
===================================================================
--- dists/trunk/live-helper/functions/packagelists.sh	2007-07-02 09:14:53 UTC (rev 2358)
+++ dists/trunk/live-helper/functions/packagelists.sh	2007-07-02 09:16:07 UTC (rev 2359)
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-# packagelists.sh - expands package list includes
-# Copyright (C) 2006-2007 Daniel Baumann <daniel at debian.org>
-#
-# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
-# This is free software, and you are welcome to redistribute it
-# under certain conditions; see COPYING for details.
-
-set -e
-
-Expand_packagelist ()
-{
-	# ${1} List name
-	# ${2} Default path to search
-	# ${3} Fallback path to search (optional)
-
-	# Does list exist in default path?
-	if [ -e "${2}/${1}" ];
-	then
-		Expand_packagelist_file "${2}/${1}" "${@}"
-	else
-		# If list exists in fallback, include it.
-		if [ -n "${3}" ] && [ -e "${3}/${1}" ]
-		then
-			Expand_packagelist_file "${3}/${1}" "${@}"
-		fi
-	fi
-}
-
-Expand_packagelist_file ()
-{
-	local FILE="${1}"
-	shift
-	shift
-
-	for INCLUDE in `sed -ne 's/^#<include> \(.*\)/\1/gp' "${FILE}"`;
-	do
-		Expand_packagelist "${INCLUDE}" "${@}"
-	done
-	sed -ne 's/^\([^#].*\)/\1\n/gp' "${FILE}"
-}




More information about the Debian-live-changes mailing list