[arch-projects] [PATCH] Change pacman calls with -Sd flags to -Sdd
The old pacman -d flag is now -dd since commit 111e07d0be44b7. Signed-off-by: Jakob Gruber <jakob.gruber@gmail.com> --- checkpkg | 2 +- mkarchroot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkpkg b/checkpkg index e669718..01c921e 100755 --- a/checkpkg +++ b/checkpkg @@ -47,7 +47,7 @@ for _pkgname in ${pkgname[@]}; do exit 1 fi - tmp=`pacman -Spd --noconfirm $_pkgname` + tmp=`pacman -Spdd --noconfirm $_pkgname` if [ $? -ne 0 ]; then echo "Couldn't download previous package for $_pkgname." diff --git a/mkarchroot b/mkarchroot index f385731..5b6be88 100755 --- a/mkarchroot +++ b/mkarchroot @@ -73,7 +73,7 @@ if [ -z "$cache_dir" ]; then fi if [ -f /etc/pacman.d/mirrorlist ]; then - host_mirror=$(pacman -Sdp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#') + host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#') fi if [ -z "${host_mirror}" ]; then host_mirror='http://mirrors.kernel.org/archlinux/$repo/os/$arch' -- 1.7.5.1
On Fri, 13 May 2011 13:32:30 +0200, Jakob Gruber wrote:
The old pacman -d flag is now -dd since commit 111e07d0be44b7.
Signed-off-by: Jakob Gruber <jakob.gruber@gmail.com>
Thanks for the hint. I have just applied it. Is there a scenario where this really breaks things? I could make a new release then. Pierre -- Pierre Schmitz, https://users.archlinux.de/~pierre
On 05/16/2011 06:21 PM, Pierre Schmitz wrote:
The old pacman -d flag is now -dd since commit 111e07d0be44b7.
Signed-off-by: Jakob Gruber<jakob.gruber@gmail.com> Thanks for the hint. I have just applied it. Is there a scenario where
On Fri, 13 May 2011 13:32:30 +0200, Jakob Gruber wrote: this really breaks things? I could make a new release then.
Pierre
-- Pierre Schmitz, https://users.archlinux.de/~pierre
I ran into this because - long story short - I removed namcap with -Rdd a while ago. mkarchroot -u generated an invalid mirrorlist file for the chroot because pacman -Sdp returned namcap (+ some other dep) from testing in addition to extra/devtools: $ p -Sdp extra/devtools http://ftp5.gwdg.de/pub/linux/archlinux/testing/os/x86_64/pyalpm-0.4.2-1-x86... http://ftp5.gwdg.de/pub/linux/archlinux/testing/os/x86_64/namcap-3.1-1-any.p... http://ftp5.gwdg.de/pub/linux/archlinux/extra/os/x86_64/devtools-0.9.22-1-an... I think Florian (bluewind) also had similar issues with checkpkg (but without removing namcap), but I'm not sure about the details. Jakob
On 16.05.2011 18:57, Jakob Gruber wrote:
On 05/16/2011 06:21 PM, Pierre Schmitz wrote:
The old pacman -d flag is now -dd since commit 111e07d0be44b7.
Signed-off-by: Jakob Gruber<jakob.gruber@gmail.com> Thanks for the hint. I have just applied it. Is there a scenario where
On Fri, 13 May 2011 13:32:30 +0200, Jakob Gruber wrote: this really breaks things? I could make a new release then.
I think Florian (bluewind) also had similar issues with checkpkg (but without removing namcap), but I'm not sure about the details.
checkpkg fails when you don't have all deps installed. My problem was pigeonhole which depends on dovecot. checkpkg uses pacman -Sdp and downloads pigeonhole and dovecot, compares those and the diff is therefore useless. -- Florian Pritz -- {flo,bluewind}@server-speed.net
participants (3)
-
Florian Pritz
-
Jakob Gruber
-
Pierre Schmitz