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
|
|
|
|
// TODO That should probably be stored in the database or in a file
|
|
|
|
var DebianReleasesMapping = map[string]string{
|
|
|
|
// Code names
|
|
|
|
"squeeze": "6",
|
|
|
|
"wheezy": "7",
|
|
|
|
"jessie": "8",
|
|
|
|
"stretch": "9",
|
|
|
|
"sid": "unstable",
|
|
|
|
|
|
|
|
// Class names
|
|
|
|
"oldstable": "7",
|
|
|
|
"stable": "8",
|
|
|
|
"testing": "9",
|
|
|
|
"unstable": "unstable",
|
|
|
|
}
|
|
|
|
|
|
|
|
// UbuntuReleasesMapping translates Ubuntu code names to version numbers
|
|
|
|
// TODO That should probably be stored in the database or in a file
|
|
|
|
var UbuntuReleasesMapping = map[string]string{
|
2016-01-25 17:58:51 +00:00
|
|
|
"precise": "12.04",
|
|
|
|
"quantal": "12.10",
|
|
|
|
"raring": "13.04",
|
|
|
|
"trusty": "14.04",
|
|
|
|
"utopic": "14.10",
|
|
|
|
"vivid": "15.04",
|
|
|
|
"vivid/ubuntu-core": "15.04-core",
|
|
|
|
"wily": "15.10",
|
2015-11-13 19:11:28 +00:00
|
|
|
}
|