Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2024 13:21:30 +0200
From:      DutchDaemon - FreeBSD Forums Administrator <DutchDaemon@FreeBSD.org>
To:        ports@freebsd.org
Subject:   Re: Can `pkg prime-origins` be "trained" to pick up flavors?
Message-ID:  <1144fd28-c9d5-43be-b3ce-77a8e0051634@FreeBSD.org>
In-Reply-To: <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp>
References:  <d5795604-0255-4992-8ba2-189fe6318134@FreeBSD.org> <20240702022215.86f678352bf5d7c6bf3dea4d@dec.sakura.ne.jp> <748eaf90-6c2d-41e3-8334-88458c21b7c3@FreeBSD.org> <20240702064448.1072c2a31ba44ed483730d0b@dec.sakura.ne.jp> <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------huZftVrkmpHSFF0K5ZH45EJU
Content-Type: multipart/mixed; boundary="------------pyk5isQwJ0EO71t05Rjs6NZL";
 protected-headers="v1"
From: DutchDaemon - FreeBSD Forums Administrator <DutchDaemon@FreeBSD.org>
To: ports@freebsd.org
Message-ID: <1144fd28-c9d5-43be-b3ce-77a8e0051634@FreeBSD.org>
Subject: Re: Can `pkg prime-origins` be "trained" to pick up flavors?
References: <d5795604-0255-4992-8ba2-189fe6318134@FreeBSD.org>
 <20240702022215.86f678352bf5d7c6bf3dea4d@dec.sakura.ne.jp>
 <748eaf90-6c2d-41e3-8334-88458c21b7c3@FreeBSD.org>
 <20240702064448.1072c2a31ba44ed483730d0b@dec.sakura.ne.jp>
 <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp>
In-Reply-To: <20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp>

--------------pyk5isQwJ0EO71t05Rjs6NZL
Content-Type: multipart/alternative;
 boundary="------------2QXV0O5A0ZjOy6dpG2HERoel"

--------------2QXV0O5A0ZjOy6dpG2HERoel
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64

T24gMi03LTIwMjQgMDA6NTIsIFRvbW9ha2kgQU9LSSB3cm90ZToNCj4gU2NyaXB0IGJlbG93
IHdvdWxkIHdvcmsgZm9yIHlvdS4NCj4gZm9yIHBvcnQgaW4gJCggL3Vzci9sb2NhbC9zYmlu
L3BrZyBwcmltZS1vcmlnaW5zIHwgc29ydCAtdSApDQo+IGRvDQo+IGZsYXZvcj0kKCAvdXNy
L2xvY2FsL3NiaW4vcGtnIGluZm8gLUEgIiR7cG9ydH0iIHwgXA0KPiAvdXNyL2Jpbi9ncmVw
ICJmbGF2b3IiIHwgL3Vzci9iaW4vYXdrICd7cHJpbnQgJE5GfScgfCBcDQo+IC91c3IvYmlu
L2dyZXAgLXYgImRlZmF1bHQiICkNCj4gWyAieCR7Zmxhdm9yfSIgPSAieCIgXSAmJiBlY2hv
ICIke3BvcnR9IiB8fCBcDQo+ICAgIGZvciBmbHZyIGluICR7Zmxhdm9yfQ0KPiAgICBkbw0K
PiAgICAgIGVjaG8gLW4gJHtmbHZyfSA7IFsgIngke2ZsdnJ9IiA9ICJ4IiBdICYmIGVjaG8g
IiR7cG9ydH0iIHx8IFwNCj4gICAgICBlY2hvICIke3BvcnR9QCR7Zmx2cn0iDQo+ICAgIGRv
bmUNCj4gZG9uZQ0KDQoNCkkgZG9uJ3QgdGhpbmsgSSBoYXZlIGFueXRoaW5nIG11bHRpLWZs
YXZvcmVkIGFueXdoZXJlLCBidXQgZ29vZCBjYXRjaC4gDQpUaGFua3MhDQoNCg==
--------------2QXV0O5A0ZjOy6dpG2HERoel
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    <div class=3D"moz-cite-prefix">On 2-7-2024 00:52, Tomoaki AOKI wrote:=
<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:20240702075204.2c10d58cb4402523a8af9732@dec.sakura.ne.jp"><sp=
an
      style=3D"white-space: pre-wrap">Script below would work for you.</s=
pan>
      <pre class=3D"moz-quote-pre" wrap=3D"">
for port in $( /usr/local/sbin/pkg prime-origins | sort -u )
do
flavor=3D$( /usr/local/sbin/pkg info -A "${port}" | \
/usr/bin/grep "flavor" | /usr/bin/awk '{print $NF}' | \
/usr/bin/grep -v "default" )
[ "x${flavor}" =3D "x" ] &amp;&amp; echo "${port}" || \
  for flvr in ${flavor}
  do
    echo -n ${flvr} ; [ "x${flvr}" =3D "x" ] &amp;&amp; echo "${port}" ||=
 \
    echo "${port}@${flvr}"
  done
done
</pre>
    </blockquote>
    <p><br>
    </p>
    <p>I don't think I have anything multi-flavored anywhere, but good
      catch. Thanks!<span style=3D"white-space: pre-wrap">
</span></p>
  </body>
</html>

--------------2QXV0O5A0ZjOy6dpG2HERoel--

--------------pyk5isQwJ0EO71t05Rjs6NZL--

--------------huZftVrkmpHSFF0K5ZH45EJU
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQSDIpfQllw48uFsWk/r4FMJZEPckQUCZoPiugUDAAAAAAAKCRDr4FMJZEPckS5p
AP9yuV+ZDxZ2qcLISzX9UeC7txQmWqpWpCVata1XmD9WuQD+LK5Z3tm7FwtCkXAyYkOpAIOHUaR0
j2iF6jvVhsn/mAc=
=nAzE
-----END PGP SIGNATURE-----

--------------huZftVrkmpHSFF0K5ZH45EJU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1144fd28-c9d5-43be-b3ce-77a8e0051634>