[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package.el dependencies

From: Thierry Volpiatto
Subject: Re: package.el dependencies
Date: Wed, 28 Jan 2015 15:32:29 +0100

Artur Malabarba <address@hidden> writes:

>> @@ -2178,7 +2278,7 @@ Optional argument NOQUERY non-nil means do not ask the 
>> user to confirm."
>>            (length install-list)
>>            (mapconcat #'package-desc-full-name
>>                  install-list ", ")))))
>> -    (mapc 'package-install install-list)))
>> +    (mapc (lambda (p) (package-install p 1)) install-list)))
> IIUC, this will mark dependencies as installed directly when the user 
> performs an upgrade (`U x' in the package list).

Indeed, thanks, this should be enough (fully not tested):

-         (mapc (lambda (p) (package-install p 1)) install-list)))
+         (mapc (lambda (p)
+                  (package-install p (and (null (package-installed-p p)) 1)))
+                install-list)))

Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]