Changeset 1557 in ProjectBuilder


Ignore:
Timestamp:
May 21, 2012, 3:48:43 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • pb: Don't create a repomd.xml.key symlink if the pubkey is empty. opensuse zypper will reject the file and refuse to use the repo (even if the option to ignore signatures is specified) (Eric Anderson)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1556 r1557  
    20562056createrepo -s $pbsha .
    20572057# Link to the key
    2058 (cd repodata ; ln -sf ../$ENV{'PBPROJ'}.pubkey repomd.xml.key)
     2058if [ -s $ENV{'PBPROJ'}.pubkey ]; then
     2059    (cd repodata ; ln -sf ../$ENV{'PBPROJ'}.pubkey repomd.xml.key)
     2060else
     2061    echo "Avoiding creating empty repomd.xml.key; fails on opensuse 12.1"
     2062fi
    20592063# sign the repomd (at least useful for SLES - which requires a local key)
    20602064# gpg -a --detach-sign repodata/repomd.xml
     
    21492153            $rpd =~ s|/./|/|g;
    21502154            my ($projcomponent_map) = pb_conf_get_if("projcomponent");
    2151             pb_log(2,"projcomponent = ".Dumper($projcomponent_map);
     2155            pb_log(2,"projcomponent = ".Dumper($projcomponent_map)."\n");
    21522156            my $projcomponent = $projcomponent_map->{$ENV{PBPROJ}};
    21532157            $projcomponent ||= 'contrib';
Note: See TracChangeset for help on using the changeset viewer.