Re: have new packages listed on the debian landing page
Paul Wise <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www,gmane.linux.debian.devel.publicity |
|---|---|
| Organization | Debian |
| Message-ID | <[email protected]> |
On Sat, 2017-05-13 at 17:52 +0530, shirish शिरीष wrote:
> 1. How can I get the output I am getting on CLI I can have on a file
Either copy-and-paste from your terminal or shell redirection features:
https://en.wikibooks.org/wiki/Guide_to_Unix/Explanations/Pipes_and_Job_Control
> [$] ./process.pl > list.json
The script outputs HTML not JSON, so you want this:
./process.pl > list.html
> 2. Is there a way to remove libraries from the list itself ?
Either manually or modifying the process.pl script to add a line like this:
next if m{^lib} && !m{^libre};
Inside the while loop after chomp.
In perl, this means skip to the next iteration of the loop if the
current loop argument ($_) matches the regex ^lib but does not match
the regex ^libre. The ^ in the regexes means the start of the line.
http://perldoc.perl.org/functions/next.html
http://perldoc.perl.org/functions/if.html
http://perldoc.perl.org/functions/m.html
http://perldoc.perl.org/perlvar.html#General-Variables
http://perldoc.perl.org/perlop.html#C-style-Logical-And
http://perldoc.perl.org/perlop.html#Symbolic-Unary-Operators
http://perldoc.perl.org/perlre.html#Regular-Expressions
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAlkXqnAACgkQMRa6Xp/6 aaP79g//TVpWQGEwfUX4ULYZltn0pFdl+JuMlAREMHTO5ETalZbnmghE0OPYAmzk YozdR/ZxYVo7IYFrY6a8SqMoEGiRQPzmPavM8PfG4EZMI3CELWs6YOYQy03paLJ0 DFnWQ3CsrHGTK2KpFdd/XA5QV3VaY/pjjIoqtYs3ddf+sg506jH3u06jb+izbyZI g7Kemp3+nURSNmCTdGt3b4H25M45+n9Oj/9sDRnruwaNOpfe7FuLW6dMBdBkUc8a /h72lAg9H5qlj8b2wP0u9YZngzbeSb+szUrttLw/3yHW5sjDl/i4L7yj9rGXyjnZ RQ/tTzMMq55Ro9tyFoZED4H4Y7oDCk3q8bMdwvUPr6HkOYlIkDPxDQokdv5akWuQ zmdu6s0JuJDIXRboKPMz3yNgzCAqNaYlipBtWtDSgZ6Pnd0Ot55WNJmgRKxtCL5s +Rma2PjrsOvsfqgEM54rxFWbrq4e6DfyX7EDXCJUtUF5/GwBMGPYlYlCAPAYNi2Y LL4jfdxZQcCRkS81YfPICoC2NjcCJAYUXkSmJt0sgVQBi4WHbQ7zVsJjWw7lUJim fowoARcZoKd/kGsO5MnBlrYYLzDdSC4mnDgUzt6NrilKLVrlixu5bvYR+5w1ofWr 4AcE1TnBn+3XRxw78J4rgyl4Jt+KJgKSUKQs2DSAkCv9SXenjF4= =K2v9 -----END PGP SIGNATURE-----