From 0b6bd18b4547e09dbbc26a94b2e4ec13350e7762 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Fri, 20 Dec 2013 17:09:28 -0500 Subject: opkg-cl: Arguments are globs not regexps This patch fixes issue 107. The arguments taken by opkg are treated as shell-style globbing patterns, not as regular expressions. Both the manual page and the output of 'opkg --help' are changed to describe things correctly. Signed-off-by: Paul Barker --- (limited to 'src') diff --git a/src/opkg-cl.c b/src/opkg-cl.c index 0073847..621e376 100644 --- a/src/opkg-cl.c +++ b/src/opkg-cl.c @@ -230,7 +230,7 @@ usage() printf("\tupgrade Upgrade installed packages\n"); printf("\tinstall Install package(s)\n"); printf("\tconfigure Configure unpacked package(s)\n"); - printf("\tremove Remove package(s)\n"); + printf("\tremove Remove package(s)\n"); printf("\tflag Flag package(s)\n"); printf("\t =hold|noprune|user|ok|installed|unpacked (one per invocation)\n"); @@ -240,21 +240,21 @@ usage() printf("\tlist-upgradable List installed and upgradable packages\n"); printf("\tlist-changed-conffiles List user modified configuration files\n"); printf("\tfiles List files belonging to \n"); - printf("\tsearch List package providing \n"); - printf("\tinfo [pkg|regexp] Display all info for \n"); - printf("\tstatus [pkg|regexp] Display all status for \n"); + printf("\tsearch List package providing \n"); + printf("\tinfo [pkg|glob] Display all info for \n"); + printf("\tstatus [pkg|glob] Display all status for \n"); printf("\tdownload Download to current directory\n"); printf("\tcompare-versions \n"); printf("\t compare versions using <= < > >= = << >>\n"); printf("\tprint-architecture List installable package architectures\n"); - printf("\tdepends [-A] [pkgname|pat]+\n"); - printf("\twhatdepends [-A] [pkgname|pat]+\n"); - printf("\twhatdependsrec [-A] [pkgname|pat]+\n"); - printf("\twhatrecommends[-A] [pkgname|pat]+\n"); - printf("\twhatsuggests[-A] [pkgname|pat]+\n"); - printf("\twhatprovides [-A] [pkgname|pat]+\n"); - printf("\twhatconflicts [-A] [pkgname|pat]+\n"); - printf("\twhatreplaces [-A] [pkgname|pat]+\n"); + printf("\tdepends [-A] [pkgname|glob]+\n"); + printf("\twhatdepends [-A] [pkgname|glob]+\n"); + printf("\twhatdependsrec [-A] [pkgname|glob]+\n"); + printf("\twhatrecommends[-A] [pkgname|glob]+\n"); + printf("\twhatsuggests[-A] [pkgname|glob]+\n"); + printf("\twhatprovides [-A] [pkgname|glob]+\n"); + printf("\twhatconflicts [-A] [pkgname|glob]+\n"); + printf("\twhatreplaces [-A] [pkgname|glob]+\n"); printf("\nOptions:\n"); printf("\t-A Query all packages not just those installed\n"); @@ -302,7 +302,7 @@ usage() printf("\n"); - printf(" regexp could be something like 'pkgname*' '*file*' or similar\n"); + printf(" glob could be something like 'pkgname*' '*file*' or similar\n"); printf(" e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'\n"); /* --force-removal-of-essential-packages Let opkg remove essential packages. -- cgit v0.9.1