diff options
author | P. J. McDermott <pjm@nac.net> | 2013-07-16 17:46:43 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-07-16 17:46:43 (EDT) |
commit | 96f892944debd70176d162c25b830e0a0c36138c (patch) | |
tree | db3847e9adfaf67796054196247245ad3c6d0881 | |
parent | 66ae93b8447d6bfe12b7dff86954b9f8ac28f6bd (diff) |
Make archive var global.
-rw-r--r-- | lib/cmd/include.sh | 3 | ||||
-rw-r--r-- | src/pro-archman.sh | 4 |
2 files changed, 4 insertions, 3 deletions
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' |