Changeset 2254 in ProjectBuilder for devel/pb/lib/ProjectBuilder
- Timestamp:
- Aug 30, 2017, 5:07:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/Filter.pm
r2253 r2254 24 24 use ProjectBuilder::Distribution; 25 25 use ProjectBuilder::Changelog; 26 use ProjectBuilder::VCS; 26 27 27 28 # Inherit from the "Exporter" module which handles exporting functions. … … 65 66 66 67 my @ffiles; 68 my @ffilestoconvert; 67 69 my $pbpkg = shift || die "No package specified"; 68 70 my $pbos = shift; … … 79 81 foreach my $file_basename (@file_basenames) { 80 82 my $path = "$dir/${file_basename}.yml"; 81 push(@ffiles, $path) if -f $path; 82 } 83 } 83 if (-f $path) { 84 push(@ffiles, $path); 85 } else { 86 my $path2 = "$dir/${file_basename}.pbf"; 87 push(@ffilestoconvert, $path2) if (-f $path2); 88 } 89 } 90 } 91 92 # Convert all old filter files into new ones 93 if (@ffilestoconvert) { 94 foreach my $f (@ffilestoconvert) { 95 my $fyml = $f; 96 $fyml =~ s/\.pbf/.yml/; 97 pb_update_conf_v0($f,$fyml); 98 my ($pburl) = pb_conf_get("pburl"); 99 my ($scheme, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}}); 100 pb_vcs_add_if_not_in($scheme,$fyml); 101 push(@ffiles, $fyml); 102 } 84 103 85 104 if (@ffiles) {
Note:
See TracChangeset
for help on using the changeset viewer.