Changeset 2012 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Oct 12, 2015, 12:17:48 PM (9 years ago)
Author:
Bruno Cornec
Message:

Adds dnf support

Starting with Fedora 22 the package manager is dnf and not yum anymore
pb needed some adaptations to support it, which have been mostly been
coded in this patch. Tests to be done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2005 r2012  
    21992199            # By default force GPG check in repo even if we support signature of packages to fail. This is a best practice
    22002200            $pbgpgcheck = 1 if (not defined $pbgpgcheck);
    2201             # Also make a pbscript to generate yum/urpmi bases
     2201            # Also make a pbscript to generate dnf/yum/urpmi bases
    22022202            print PBS << "EOF";
    22032203#!/bin/bash
    2204 # Prepare a script to ease yum setup
     2204# Prepare a script to ease dnf/yum setup
    22052205EOF
    22062206            print PBS "set -x\n" if ($pbdebug gt 1);
     
    37973797
    37983798# First install all required packages
    3799 pb_system("yum clean all","Cleaning yum env","mayfail") if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel"));
     3799pb_system("dnf clean all","Cleaning dnf env","mayfail") if (($pbos->{'name'} eq "fedora") && ($pbos->{'version'} >= 22));
     3800pb_system("yum clean all","Cleaning yum env","mayfail") if ((($pbos->{'name'} eq "fedora") && ($pbos->{'version'} < 22)) || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel"));
    38003801my ($ospkgdep) = pb_conf_get_if("ospkgdep");
    38013802   
Note: See TracChangeset for help on using the changeset viewer.