VirtualBox

Changeset 73093 in vbox for trunk


Ignore:
Timestamp:
Jul 12, 2018 7:10:56 PM (7 years ago)
Author:
vboxsync
Message:

rpm/rules: stop using /etc/distname to determine the distribution as we can do it without.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/rpm/rules

    r72921 r73093  
    6969
    7070ifneq ($(MAKECMDGOALS),clean)
    71  rpmrel   := $(subst ol,el,$(subst rhel,el,$(subst centos,el,$(shell cat /etc/distname))))
    72  ifeq ($(rpmrel),)
    7371 # look for fedora
    74   rpmrel  := $(shell cat /etc/fedora-release 2> /dev/null | sed -e 's/^Fedora  *release  *\([1-9][0-9]*\) .*/fedora\1/')
    75  endif
     72 rpmrel  := $(shell cat /etc/fedora-release 2> /dev/null | sed -e 's/^Fedora  *release  *\([1-9][0-9]*\) .*/fedora\1/')
    7673 ifeq ($(rpmrel),)
    7774 # look for OL
     
    9188 endif
    9289 ifeq ($(rpmrel),)
    93   $(error failed to detect the release type. Add /etc/distname or hack the detection.)
     90  $(error failed to detect the release type.  Hack the detection.)
    9491 endif
    9592
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette