cookbooks/apt — Issue #8: apt_repository should be able to modify existing repo source files
Author: sometimesfood
Created: 2011-12-08 11:21:25+00:00
State: open

`apt_repository` should be able to modify existing repo source files.

```ruby
apt_repository 'foo' do
uri 'http://example.org'
distribution 'stable'
components ['main']
action :add
end

apt_repository 'foo' do
uri 'http://example.org/some/completely/different/uri'
distribution 'bleeding_edge'
components ['nonfree']
action :add
end
```

Expected: This should create a `foo` repository in `/etc/apt/sources.list.d/`. This repository should have the long URI, the `bleeding_edge` distribution and the `nonfree` component.

Actual behaviour: apt_repository creates the first repository and completely ignores the second definition.