Commit Graph

8 Commits

Author SHA1 Message Date
Tiago Bortoletto Vaz 64b7d8cb86 Support list of items for conditionals in package lists
This patch allows giving a list of items for the conditionals in package
lists. For example, it's possible to specify some packages for more than one
architecture in the same conditional block:

 package01
 #if ARCHITECTURE i386 amd64
 package02
 package03
 #endif
 package04

where package01 and package04 are available for all architectures, but
package02 and package03 are available only for i386 and amd64 architectures.
2008-04-27 19:16:39 -03:00
Chris Lamb d77ee36137 Support simple conditionals in package lists
This patch adds support for simple conditionals in package lists. For
example, to limit a package to i386 only:

 foo
 #if ARCHITECTURE i386
 package-only-in-i386
 #endif
 bar

Any variable that beings in LH_ can be expanded:

 #if MODE ubuntu
 package-only-in-ubuntu
 #endif

Nesting of conditionals is not supported. If the variable to be expanded
does not exist, the conditional is false.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-26 23:43:01 +01:00
Chris Lamb d49857d8ff Rewrite Expand_packagelist to not be recursive
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-04-19 16:29:28 +01:00
Daniel Baumann ab336ba97e Updating copyright years to 2008. 2008-03-06 16:43:00 +01:00
Chris Lamb 8b59b61bb2 Use C-style 'include' in lists (backwards compatible).
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-16 10:19:10 +01:00
Daniel Baumann 948730f93a Consistently using the pipe as seperator in sed commands now. 2008-01-15 08:25:29 +01:00
Daniel Baumann a03cfd36b8 Replacing backticks with POSIX expression. 2007-09-24 08:47:42 +02:00
Daniel Baumann c026e68cd0 Adding live-helper 1.0~a21-1. 2007-09-23 10:05:16 +02:00