~ubuntu-branches/ubuntu/precise/puppet/precise-proposed

« back to all changes in this revision

Viewing changes to lib/puppet/simple_graph.rb

  • Committer: Package Import Robot
  • Author(s): Micah Anderson
  • Date: 2012-02-23 18:24:48 UTC
  • mfrom: (1.1.28) (3.1.36 sid)
  • Revision ID: package-import@ubuntu.com-20120223182448-belun93murza4w99
Tags: 2.7.11-1
* New upstream release
* Urgency set to high due to regressions in previous release
  and security vulnerabilities
* Execs when run with a user specified, but no group, get the root
  group. Similarly unexpected privileges are given to providers and
  types (egid remains as root), this is fixed with a patch from
  upstream (CVE-2012-1053)
* Fix Klogin write through symlink (CVE-2012-1054)

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
    # Given we are in a failure state here, any extra cost is more or less
179
179
    # irrelevant compared to the cost of a fix - which is on a human
180
180
    # time-scale.
181
 
    state[:scc].select { |c| c.length > 1 }.map do |x|
182
 
      x.sort_by {|a| a.to_s }
183
 
    end.sort
 
181
    state[:scc].select { |c| c.length > 1 }.map {|x| x.sort }.sort
184
182
  end
185
183
 
186
184
  # Perform a BFS on the sub graph representing the cycle, with a view to
214
212
      end
215
213
    end
216
214
 
217
 
    return found
 
215
    return found.sort
218
216
  end
219
217
 
220
218
  def report_cycles_in_graph