[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2012-07-17 Thread Aidan Furlan
I agree with sworddragon, a fully commented file is useful in that it
tells me this syntax works but I have temporarily disabled it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2012-07-16 Thread Sworddragon
If there are only comments in the file it will still result in an error:
E: Unable to parse package file /etc/apt/preferences (1). In my
opinion apt should handle this file like an empty file in this case.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2011-11-23 Thread Daniel Hahler
This has regressed:

% cat /etc/apt/preferences
#test 

% apt-get source apt
Reading package lists... Done
E: Unable to parse package file /etc/apt/preferences (1)

The man page tells that Explanation:  would work for commenting
package sections (and // does appear to work the same), but it
requires a Package header then anyway (otherwise it results in E:
Invalid record in the preferences file /etc/apt/preferences, no Package
header).

** Changed in: apt (Ubuntu)
   Status: Fix Released = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2011-11-23 Thread Daniel Hahler
The patch from Debian bug 189866 appears to be there (at least partly),
but does apparently not work as expected in this case.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2011-11-23 Thread Julian Andres Klode
Well, a comment without something to comment is not really useful
anyway. If there are actual sections in the file, it works. It expects
the file to be empty or to contain at least one valid section.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2011-08-10 Thread Bug Watch Updater
** Changed in: apt (Debian)
   Status: Unknown = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/83337

Title:
  apt preferences file should allow comments (#) (was: [apport] update-
  manager crashed with SystemError in open())

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83337/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2009-10-19 Thread Anders Kaseorg
Fixed in Karmic.

apt (0.7.22) unstable; urgency=low
…
  [ David Kalnischkies ]
  * [ABI break] support '#' in apt.conf and /etc/apt/preferences
(closes: #189866)
…
 -- Michael Vogt m...@debian.org  Wed, 29 Jul 2009 19:16:22 +0200


** Bug watch added: Debian Bug tracker #189866
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=189866

** Also affects: apt (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=189866
   Importance: Unknown
   Status: Unknown

** Changed in: apt (Ubuntu)
   Status: Confirmed = Fix Released

-- 
apt preferences file should allow comments (#) (was: [apport] update-manager 
crashed with SystemError in open())
https://bugs.launchpad.net/bugs/83337
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2009-07-13 Thread Rockwalrus
As a workaround, you can use the Explanation: field for this purpose:

Explanation: Package: tar
Explanation: Pin: version 1.15.1-2ubuntu2
Explanation: Pin-Priority: 1000

-- 
apt preferences file should allow comments (#) (was: [apport] update-manager 
crashed with SystemError in open())
https://bugs.launchpad.net/bugs/83337
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 83337] Re: apt preferences file should allow comments (#) (was: [apport] update-manager crashed with SystemError in open())

2009-01-23 Thread Lars Noodén
This is an important item.  One needs to be able to document the changes
not only for other system administrators but also for oneself, if the
time period is long enough.  The best location is inline within the
preferences file itself.  A separate file *will* get lost or
forgotten...

-- 
apt preferences file should allow comments (#) (was: [apport] update-manager 
crashed with SystemError in open())
https://bugs.launchpad.net/bugs/83337
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs