LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Rethinking the description during install? (https://www.linuxquestions.org/questions/slackware-14/rethinking-the-description-during-install-869002/)

Skaperen 03-18-2011 03:46 PM

Quote:

Originally Posted by allend (Post 4295019)
Do not try to be too cute as this runs in BusyBox.

You mean like: don't add a test for an environment variable to be used to apply this option or not?

allend 03-18-2011 06:25 PM

Quote:

You mean like: don't add a test for an environment variable to be used to apply this option or not?
That should be fine.

My experiments with modifying the installer were confined to adding support for ntfs-3g as I wanted to PXE boot a minimal system on some Windows machines for imaging to an NTFS formattted external USB drive. I did come across some differences in the BusyBox versions of commands while playing with this. This was the source of my comment.

chrisretusn 03-18-2011 09:15 PM

Quote:

Originally Posted by Skaperen (Post 4292910)
Do we really need this anymore? It's unreadable.

I'd rather see a list of packages being installed scroll by, one package name per line (with size info). Even that might get hard to read during the buzz of small packages being installed causing rapid scrolls.

It's not that bad. Really doesn't matter much to me what scrolls by. Most of the time I don't sit and watch.

You could always opt for prompt for everything, then there would be no problem reading. ;)

anti_user 03-19-2011 02:25 AM

Code:

Sat Mar 19 04:37:14 UTC 2011
a/pkgtools-13.37-noarch-2.tgz: Rebuilt.
      Add --terse one-line output mode to installpkg.


lumak 03-19-2011 04:42 AM

Haha that was fast.

How about another last minute addition of adding a proper word dictionary so that I don't have to install hangman from the BSD games ;P

ruario 03-19-2011 06:57 AM

Quote:

Originally Posted by anti_user (Post 4295835)
Code:

Sat Mar 19 04:37:14 UTC 2011
a/pkgtools-13.37-noarch-2.tgz: Rebuilt.
      Add --terse one-line output mode to installpkg.


I thought I would just try this out on one of my own self made packages:

Code:

# installpkg --terse opera-11.10.2053-i386-1ro.txz
opera-11.10.2053-i386-1ro: fast and secure web browser and Internet suit [30M]
# grep -A1 DESCRIPTION /var/log/packages/opera-11.10.2053-i386-1ro
PACKAGE DESCRIPTION:
opera: A fast and secure web browser and Internet suite.

What happened to 'A' from the start and 'e.' from the end in the terse output? It seems like it is cropping from either end.

Probably not a major issue if you realise what it is doing but it might cause some people to be confused depending on how the description has been written.

Alien Bob 03-19-2011 07:15 AM

Quote:

Originally Posted by ruario (Post 4295975)
I thought I would just try this out on one of my own self made packages:

Code:

# installpkg --terse opera-11.10.2053-i386-1ro.txz
opera-11.10.2053-i386-1ro: fast and secure web browser and Internet suit [30M]
# grep -A1 DESCRIPTION /var/log/packages/opera-11.10.2053-i386-1ro
PACKAGE DESCRIPTION:
opera: A fast and secure web browser and Internet suite.

What happened to 'A' from the start and 'e.' from the end in the terse output? It seems like it is cropping from either end.

Probably not a major issue if you realise what it is doing but it might cause some people to be confused depending on how the description has been written.

Your slack-desc file does not conform to the specs.
The first line should look like:

Code:

pkgname: pkgname (short description)
Since the first line of your slack-desc file is lacking the ( ) the effect of "--terse" is that the first and last character of your short description are cut off instead of the "(" and ")".

Eric

ruario 03-19-2011 07:27 AM

Quote:

Originally Posted by Alien Bob (Post 4295982)
Your slack-desc file does not conform to the specs.
The first line should look like:

Code:

pkgname: pkgname (short description)

Opps. Yes you are right of course, it doesn't. Ok, I'll correct that now then! Thanks. ;)

ruario 03-19-2011 07:36 AM

I think I originally read about the formatting of the slack-desc here http://slackwiki.org/Slack-desc and looking back now it isn't clear on this point. Though I see from looking at the official packages that the method you describe is clearly correct.

Alien Bob 03-19-2011 07:52 AM

Quote:

Originally Posted by ruario (Post 4295992)
I think I originally read about the formatting of the slack-desc here http://slackwiki.org/Slack-desc and looking back now it isn't clear on this point. Though I see from looking at the official packages that the method you describe is clearly correct.

I updated the SlackWiki page http://slackwiki.org/Slack-desc so that this requirement is clear.

Eric

ruario 03-19-2011 07:57 AM

Quote:

Originally Posted by Alien Bob (Post 4295999)
I updated the SlackWiki page http://slackwiki.org/Slack-desc so that this requirement is clear.

I saw that, thanks. I has just finished registering to do that myself and then saw that you beat me to the punch. ;)

Darth Vader 03-19-2011 11:43 AM

Is just my biased feeling, or this thread should be marked as SOLVED, thinking that PV introduced the TERSE mode in installer? ;)

gmartin 03-19-2011 12:44 PM

Congrats to Skaperen for asking a good question & thanks to Pat & the Slackware guys for a quick implementation.

Skaperen 03-19-2011 05:24 PM

Trying it now. Looks nice. Thanks to Pat and the team.

Darth Vader 03-19-2011 05:42 PM

Quote:

Originally Posted by Skaperen (Post 4296448)
Trying it now. Looks nice. Thanks to Pat and the team.

Then, make this frakking thread solved, man! :D


All times are GMT -5. The time now is 11:41 PM.