5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 RELEASE
="ReleaseEIGHT-daily"
19 REPOSITORY_KEY
="OSM%20ETSI%20Release%20Key.gpg"
21 REPOSITORY_BASE
="http://osm-download.etsi.org/repository/osm/debian"
24 while getopts ":r:k:u:R:b:-:dm:p:" o
; do
33 REPOSITORY_KEY
=${OPTARG}
36 REPOSITORY_BASE
=${OPTARG}
42 PACKAGE_NAME
=${OPTARG}
52 if [ -z "$MDG" ]; then
56 [ -z "$PACKAGE_NAME" ] && PACKAGE_NAME
=$MDG
58 if [ -n "$DEBUG" ]; then
59 echo curl
$REPOSITORY_BASE/$RELEASE/dists
/$REPOSITORY/$MDG/binary-amd64
/Packages
62 curl
$REPOSITORY_BASE/$RELEASE/dists
/$REPOSITORY/$MDG/binary-amd64
/Packages
2>/dev
/null |
awk -v pkg
=$PACKAGE_NAME '{
63 if ( /Package:/ && match($2,sprintf("%s$",tolower(pkg)) ) ) {
65 } else if (package==1 && match($1,"Version:")) {