[Bug 392984] Re: poldek ls command ability to display source rpm package

Cactus uzi18 at o2.pl
Mon Oct 26 16:11:50 CET 2009


Add --source-rpm (-s) option to ls

Please check this out.


poldek:/all-avail> ls --help
Usage: ls [OPTION...] [PACKAGE...]
List packages

  -G                         Print package groups
  -I, --installed            List installed packages
  -l, --long                 Use a long listing format
  -n                         Print only package names
  -O                         Print package summaries
  -r, --reverse              Reverse order while sorting
  -s, --source-rpm           Print package source rpm
  -S, --upgradeable-sec      Show upgrade-able packages with potential security fixes
  -t                         Sort by build time
  -T                         Sort by build day
  -u, --upgradeable          Show upgrade-able packages only
  -U, --upgradeablev         Likewise but omit packages with different releases only
  -q                         Be quiet
  -v                         Be verbose.
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

  Defined aliases:
    l                 "ls -l"
    ll                "ls -l"
    llU               "ls -lU"
    lli               "ls -lI"
    lls               "ls -lS"
    llu               "ls -lu"

Report bugs to <mis at pld-linux.org>.
poldek:/all-avail> ls -s *wicd*
package                                                                              source rpm
pm-utils-wicd-1.6.2.2-2.i686                                                         wicd-1.6.2.2-2.src.rpm
pm-utils-wicd-1.6.2.2-2.x86_64                                                       wicd-1.6.2.2-2.src.rpm
wicd-1.5.9-2.noarch                                                                  wicd-1.5.9-2.src.rpm
wicd-1.6.2.2-2.i686                                                                  wicd-1.6.2.2-2.src.rpm
wicd-1.6.2.2-2.x86_64                                                                wicd-1.6.2.2-2.src.rpm
wicd-client-curses-1.6.2.2-2.i686                                                    wicd-1.6.2.2-2.src.rpm
wicd-client-curses-1.6.2.2-2.x86_64                                                  wicd-1.6.2.2-2.src.rpm
7 packages
poldek:/all-avail>


** Attachment added: "poldek-ls-source-rpm.patch"
   http://launchpadlibrarian.net/34415451/poldek-ls-source-rpm.patch

** Changed in: pld-linux
       Status: New => In Progress

-- 
poldek - add option --source-rpm to ls
https://bugs.launchpad.net/bugs/392984
You received this bug notification because you are subscribed to PLD
Linux.

Status in poldek: In Progress
Status in PLD Linux Distribution: In Progress

Bug description:
i wish poldek ls command would able to display sourcerpm package, like it can do for group:
 
poldek:/all-avail> ls -l *2.6.27.15* -G
error: ls: -l and -G are exclusive     

poldek:/all-avail> ls  *2.6.27.15* -G
package                                                                      group               
kernel-2.6.27.15-1.x86_64                                                    Base/Kernel         
kernel-char-btsco-0.5-39 at 2.6.27.15_1.x86_64                                  Base/Kernel
kernel-char-lirc-atiusb-0.8.4a-2 at 2.6.27.15_1.x86_64                          Base/Kernel
kernel-char-lirc-bt829-0.8.4a-2 at 2.6.27.15_1.x86_64                           Base/Kernel

of course extra cool would be if i could just pass --queryformat like rpm allows:

poldek> ls --qf '%{N}-%{V}-%{R} %{SOURCERPM}\n'

but 'ls -s' would be fine for start too.


More information about the pld-bugs mailing list