Skip to content

Problem with slackpkg and package names that are four segments long #35

@chrisretusn

Description

@chrisretusn

There is a problem with slackpkg and package names that are four segments long. When issuing the command 'slackpkg info' with a package that has four segments for a package name you get the following result:

# slackpkg info font-adobe-utopia-75dpi

No packages found! Try:

        slackpkg search 'font-adobe-utopia-75dpi'

and choose one (and ONLY one package).

My proposed fix is:

--- /usr/libexec/slackpkg/cutpkg.awk.org	2023-04-20 23:21:59.872739781 +0800
+++ /usr/libexec/slackpkg/cutpkg.awk	2023-04-20 23:25:34.446733411 +0800
@@ -1,6 +1,6 @@
 OFS="-" { 
-	if ( NF > 3 ) { 
-		NF=NF-3
+	if ( NF > 4 ) { 
+		NF=NF-4
 	}
 }
 1

The result is:

# slackpkg info font-adobe-utopia-75dpi

PACKAGE NAME:  font-adobe-utopia-75dpi-1.0.5-noarch-1.txz
PACKAGE LOCATION:  ./slackware64/x
PACKAGE SIZE (compressed):  1196 K
PACKAGE SIZE (uncompressed):  1430 K
PACKAGE DESCRIPTION:
font-adobe-utopia-75dpi: font-adobe-utopia-75dpi (bitmap fonts for X11)
font-adobe-utopia-75dpi:
font-adobe-utopia-75dpi: font-adobe-utopia-75dpi is part of X11.
font-adobe-utopia-75dpi:
font-adobe-utopia-75dpi: For more information about the X.Org Foundation (the providers of the
font-adobe-utopia-75dpi: X.Org implementation of the X Window System), see their website:
font-adobe-utopia-75dpi:
font-adobe-utopia-75dpi: http://www.x.org
font-adobe-utopia-75dpi:


I posted this over at the forum also:
https://www.linuxquestions.org/questions/slackware-14/slackpkg-2-84-0_beta1-testing-wanted-4175643527/page19.html#post6425946

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions