Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Add DebianPkgs module. #84

Closed
wants to merge 9 commits into from
Closed

Conversation

elebow
Copy link
Collaborator

@elebow elebow commented Jun 15, 2014

Fathead Pull Request

What does your instant answer do?
Returns the version and short description of a Debian package in the current stable and testing repositories.

What problem does your instant answer solve (Why is it better than organic links)?
It provides enough information at a glance to tell a user the generalities of a package and the current versions in Debian. Organic links rarely provide such information without navigating to the destination.

What is the data source for your instant answer? (Provide a link if possible)
https://packages.debian.org/stable/allpackages?format=txt.gz
https://packages.debian.org/testing/allpackages?format=txt.gz

Why did you choose this data source?
This is the authoritative list of packages in Debian

Are there any other alternative (better) data sources?
There are alternatives, but they are not likely to be better than the list from packages.debian.org.

What are some example queries that trigger this instant answer?

debian vim
debian package plink
netcat debian pkg

Which communities will this instant answer be especially useful for? (gamers, book lovers, etc)
Debian users; possibly Ubuntu users

Is this instant answer connected to a DuckDuckHack instant answer idea?
https://duck.co/ideas/idea/277/debian-and-derivatives-like-ubuntu-package-infor

Which existing instant answers will this one supercede/overlap with?
None known. There is a unmerged branch at https://github.com/duckduckgo/zeroclickinfo-fathead/tree/debian_pkgs, but it hasn't been touched in years.

Are you having any problems? Do you need our help with anything?
None.

@elebow
Copy link
Collaborator Author

elebow commented Jun 15, 2014

This is relevent to another idea: https://duck.co/ideas/idea/858/get-linux-package-name-instantly

@Two-Tone
Copy link

Suggestion, add the ability for users to specify what version of debian by saying that version's name. EG searching for

debian vim sid

will bring up the vim sid package info.

@jagtalon
Copy link
Member

jagtalon commented Jul 4, 2014

@elebow Sorry for the late reply--I'll check your code and get back to you soon!

out += "[[Image:https://screenshots.debian.net/thumbnail-with-version/%s/%s]]\t" % (p, ver) #10
out += desc + "<br>" + "<br>".join(abstract) #11
out += "\t" #12
print(out)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elebow This isn't the correct output file format. I'd point you to the fathead docs but you wrote them 😏
I saw there were a few urls in the abstract text. I'd just pull one out (latest release?) and use that as the more at link.

@elebow
Copy link
Collaborator Author

elebow commented Sep 25, 2014

@jdorweiler Is this what you meant?

@jdorweiler
Copy link
Contributor

@elebow Yep thanks. I'm not sure why the <br> tags are being removed. I'll look into it and get back to you.
selection_198

@jdorweiler
Copy link
Contributor

@elebow The <br> problem was on my end. I got that sorted out now.

selection_199
I think you should remove the distro lines though. That keeps it more in line with the ubuntu package fathead.

selection_200

@moollaza
Copy link
Member

ping! @elebow are you still interested in working on this?

@elebow
Copy link
Collaborator Author

elebow commented Jan 23, 2015

@moollaza sure

Can we get a design decision on whether the distro lines should stay or go? It is useful information, since many debian users run a version other than the stable release.

@Two-Tone
Copy link

I feel like they should stay and be links to those versions on the Package Search because of what elebow said.

@moollaza moollaza assigned jdorweiler and unassigned jagtalon Jan 23, 2015
@moollaza
Copy link
Member

@jdorweiler I can't remember if we allow HTML in Fatheads? I would opt for a <table> or something to list the versions in a nicer way.

If not, I think putting the 3 links in a row might look okay, like:

Stable: 2.5.3-2, Testing: 2.5.4-2, Unstable: 2.6.1-1


I'm not a Debian user so I'm not sure how valuable having those links would be, but if you think it's beneficial I think we should allow it.

@jdorweiler any thoughts?

@jdorweiler
Copy link
Contributor

No tables but the pypi fathead has a table like format that is made by adding
tags to separate each line. https://duckduckgo.com/?q=python+pandas&t=canonical&ia=about

I like the three links in a single row. Let's try that out and see how it looks.

@moollaza
Copy link
Member

moollaza commented Mar 3, 2015

FWIW another dev is planning to implement a basic Spice for debian packages using an API. Right now the API only gives package names, but he's hoping to reach out to Debian and improve the API.

I think a Spice is definitely the way to go for this kind of data that's more likely to change somewhat regularly.

@jdorweiler jdorweiler closed this Apr 3, 2015
@jdorweiler
Copy link
Contributor

The spice version of this is merged duckduckgo/zeroclickinfo-spice#1697

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants