Issue #19458 has been updated by Charlie Sharpsteen.

Status changed from Unreviewed to Investigating
Assignee set to Charlie Sharpsteen

Cannot re-produce. Puppet 2.7.20 [tests for this 
using](https://github.com/puppetlabs/puppet/blob/2.7.20/lib/puppet/provider/package/apt.rb#L25-L40)
 the following regular expression:

<pre>
^[^#]*cdrom:
</pre>

That doesn't catch any of the examples you provided unless the leading `#` is 
removed:

  http://rubular.com/r/AshigIcKVL

You could try printing out every line number of sources.list that is tripping 
the regular expression using something like:

<pre>
ruby -e 'File.readlines("/etc/apt/sources.list").each_with_index {|l,n| puts 
"#{n}: #{l}" if l =~ /^[^#]*cdrom:/}'
</pre>

That should print the line number and then the matching line.


----------------------------------------
Bug #19458: apt package provider checkforcdrom fails
https://projects.puppetlabs.com/issues/19458#change-86908

Author: Amos Shapira
Status: Investigating
Priority: Normal
Assignee: Charlie Sharpsteen
Category: 
Target version: 
Affected Puppet version: 2.7.20
Keywords: 
Branch: 


I have lines like the following in my /etc/apt/sources.list (on a fresh Ubuntu 
12.04.1 LTS install):
    # deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ dists/precise/main/binary-i386/
    # deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ dists/precise/restricted/binary-i386/
    # deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ precise main restricted
    #deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ dists/precise/main/binary-i386/
    #deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ dists/precise/restricted/binary-i386/
    #deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 
(20130214)]/ precise main restricted
But puppet refuses to install packages, failing with:
    err: /Stage[main]/Daemontools::Install/Package[daemontools-run]/ensure: 
change from purged to present failed: /etc/apt/sources.list contains a cdrom 
source; not installing.  Use 'allowcdrom' to override this failure.

This is with puppet 2.7.20 installed from Gem, ruby 1.8.7 (Ubuntu default)
I'm aware of "allowcdrom" and will try this as a work-around, but this seems 
like a wrong behaviour.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to