blob: 7e7ee1671c1ad8ec383ea9f034eb40a8c82fcc2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh -ef
# Check for updates
parser_definition() {
setup REST help:usage -- "usage: ${0##*/} [options]"
msg -- '' 'Options:'
flag download_only -d --download -- "Only download updatable packages"
flag CPT_FETCH -n --no-fetch on:0 off:0 init:@export -- "Do not refresh the repositories"
flag pkg_fetch -o --only-fetch -- "Only fetch repositories"
global_options
}
if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
if [ "$pkg_fetch" ]; then
pkg_fetch
else
create_cache
pkg_updates
fi
|