From 96f892944debd70176d162c25b830e0a0c36138c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Jul 2013 17:46:43 -0400 Subject: Make archive var global. --- diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh index dbd12ea..b84a4e7 100644 --- a/lib/cmd/include.sh +++ b/lib/cmd/include.sh @@ -48,7 +48,6 @@ cmd_include_main() cmd_include() { local changes="${1}" - local archive= local component= local suite= local source_l= @@ -62,8 +61,6 @@ cmd_include() local plat= local feed= - archive='archive' - parse_control "${changes}" cmd_include_changes_field \ "${CMD_INCLUDE_CHANGES_FIELDS}" '' component='main' diff --git a/src/pro-archman.sh b/src/pro-archman.sh index f7b42a6..f438c1d 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -30,6 +30,7 @@ LF=' # Global variables loading_cmd= +archive= # use() must be defined inline so it can be used to load other modules. use() @@ -76,6 +77,9 @@ main() load_locale load_cmds + # FIXME: Make this a command-line option. + archive='archive' + # FIXME: Read from conf file. conf_incoming_channel='dev' -- cgit v0.9.1