1
0
mirror of synced 2026-01-17 08:32:49 +00:00

Add a release alias feature to support fedora's code names

This commit is contained in:
Axel Beckert 2010-05-17 22:21:11 +02:00
parent a3b9715a9a
commit e10c67e87c

View File

@ -708,6 +708,25 @@ my $RELEASE = '4.2rc1';
#
# Release Aliases
#
my %RELEASE_ALIASES = (qw(
stentz fedora-core-4
bordeaux fedora-core-5
zod fedora-core-6
moonshine fedora-7
werewolf fedora-8
sulphur fedora-9
cambridge fedora-10
leonidas fedora-11
constantine fedora-12
goddard fedora-13
laughlin fedora-14
));
#
# Setup default options.
#
@ -1631,11 +1650,10 @@ sub checkArguments
}
#
# NOTE: FAKE!
# Check for release alias names
#
if ( $CONFIG{ 'dist' } eq 'fedora-core4' )
{
$CONFIG{ 'dist' } = 'stentz';
if (exists $RELEASE_ALIASES{$CONFIG{ 'dist' }}) {
$CONFIG{ 'dist' } = $RELEASE_ALIASES{$CONFIG{ 'dist' }};
}
#