From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5171713997D for ; Fri, 15 Nov 2019 13:52:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DA6FE0841; Fri, 15 Nov 2019 13:52:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 833F9E0841 for ; Fri, 15 Nov 2019 13:52:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4448834CE75 for ; Fri, 15 Nov 2019 13:52:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4B6671A for ; Fri, 15 Nov 2019 13:52:17 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1573735142.2c58dc24df8cccf41d4126bb51e5cea8abaabb0f.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qpkg.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 2c58dc24df8cccf41d4126bb51e5cea8abaabb0f X-VCS-Branch: master Date: Fri, 15 Nov 2019 13:52:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9d67057c-bbe7-4825-a1c1-57af3335679b X-Archives-Hash: 5c4cdb43cba28e5febac67b6ec40d226 commit: 2c58dc24df8cccf41d4126bb51e5cea8abaabb0f Author: Fabian Groffen gentoo org> AuthorDate: Thu Nov 14 12:39:02 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Nov 14 12:39:02 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2c58dc24 qpkg: drop binpkgs in CATEGORY subdir for compliance emaint doesn't get a pile of binpkgs, so stash them where it expects them Signed-off-by: Fabian Groffen gentoo.org> qpkg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qpkg.c b/qpkg.c index 947ff84..7a1baae 100644 --- a/qpkg.c +++ b/qpkg.c @@ -29,6 +29,7 @@ #include "xarray.h" #include "xasprintf.h" #include "xchdir.h" +#include "xmkdir.h" #include "xpak.h" #define QPKG_FLAGS "cEpP:" COMMON_FLAGS @@ -309,7 +310,13 @@ qpkg_make(depend_atom *atom) unlink(filelist); - snprintf(buf, buflen, "%s/%s.tbz2", qpkg_bindir, atom_to_pvr(atom)); + /* create dirs, if necessary */ + snprintf(buf, buflen, "%s/%s", + qpkg_bindir, atom->CATEGORY); + mkdir_p(buf, 0755); + + snprintf(buf, buflen, "%s/%s/%s.tbz2", + qpkg_bindir, atom->CATEGORY, atom_to_pvr(atom)); if (rename(tbz2, buf)) { warnp("could not move '%s' to '%s'", tbz2, buf); free(buf);