2015-11-13 19:11:28 +00:00
|
|
|
// Copyright 2015 clair authors
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
// DebianReleasesMapping translates Debian code names and class names to version numbers
|
|
|
|
var DebianReleasesMapping = map[string]string{
|
|
|
|
// Code names
|
|
|
|
"squeeze": "6",
|
|
|
|
"wheezy": "7",
|
|
|
|
"jessie": "8",
|
|
|
|
"stretch": "9",
|
2017-06-19 14:54:51 +00:00
|
|
|
"buster": "10",
|
2015-11-13 19:11:28 +00:00
|
|
|
"sid": "unstable",
|
|
|
|
|
|
|
|
// Class names
|
2017-06-19 14:54:51 +00:00
|
|
|
"oldoldstable": "7",
|
|
|
|
"oldstable": "8",
|
|
|
|
"stable": "9",
|
|
|
|
"testing": "10",
|
|
|
|
"unstable": "unstable",
|
2015-11-13 19:11:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UbuntuReleasesMapping translates Ubuntu code names to version numbers
|
|
|
|
var UbuntuReleasesMapping = map[string]string{
|
2016-01-25 20:19:51 +00:00
|
|
|
"precise": "12.04",
|
|
|
|
"quantal": "12.10",
|
|
|
|
"raring": "13.04",
|
|
|
|
"trusty": "14.04",
|
|
|
|
"utopic": "14.10",
|
|
|
|
"vivid": "15.04",
|
|
|
|
"wily": "15.10",
|
|
|
|
"xenial": "16.04",
|
2016-10-25 04:08:02 +00:00
|
|
|
"yakkety": "16.10",
|
2017-04-26 21:45:32 +00:00
|
|
|
"zesty": "17.04",
|
|
|
|
"artful": "17.10",
|
2015-11-13 19:11:28 +00:00
|
|
|
}
|