severity #596723 minor
thanks

Am 13.09.2010 20:49, schrieb chrysn:
> On Mon, Sep 13, 2010 at 07:54:30PM +0200, Patrick Matthäi wrote:
>> Am 13.09.2010 19:29, schrieb chrysn:
>>> apt-dater-host uses sudo without the need for it when doing "aptitude -v
>>> -y -q -s -f upgrade". in line 192, it prefixes the command with GETROOT,
>>> although aptitude -s does not need root privileges.
>>
>> You're right, is this on all installations the case, also etch, lenny
>> and squeeze?
> 
> it works on sarge (although back then, aptitude didn't know the -q
> option), lenny and sid; i currently don't have a squeeze box at hand but
> i don't think there is reason to assume it doesn't.
> 
>>> i didn't try with DPKGTOOL=apt-get, but i assume the situation is
>>> similar.
>>
>> No, it needs root privileges.
> 
> "apt-get -q -s -f upgrade" works for me (it does print a warning note at
> the top about locking, but we don't expect transactional logic anyway,
> do we?), and at least on my sid box, apt-dater works even after setting
> DPKGTOOL=apt-get and removing said GETROOT line.

sid:
m...@gnu:~$ LC_ALL=C apt-get -q -s -f upgrade
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
m...@gnu:~$

lenny:
pmatth...@backup:~$ LC_ALL=C apt-get -q -s -f upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?


So it has to stay for apt-get for a longer time.
For aptitude I will send upstream a patch in the next time, but it will
not go with squeeze, the issue is minor (not realy "needed", the current
implementation works fine).
I am downgrading it to minor.

CCed one of upstream devs.

-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatth...@debian.org
        patr...@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to