Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: generic debian/watch #16

Open
kapouer opened this issue Feb 18, 2012 · 4 comments
Open

Proposal: generic debian/watch #16

kapouer opened this issue Feb 18, 2012 · 4 comments
Labels

Comments

@kapouer
Copy link

kapouer commented Feb 18, 2012

Here's the one from npm package i use :

./debian/watch :

version=3
opts=downloadurlmangle=s/.*v(.*)/http\:\/\/registry\.npmjs\.org\/npm\/-\/xxxxxx\-$1\.tgz/,\
filenamemangle=s/.*v(.*)$/xxxxxx-$1\.tar\.gz/ \
https://github.com/toto/xxxxxx/tags .*/tarball/v([\d.-]+)

You can see it checks new version on github (because i do not know how to find new version on npm website),
and the github link could be found in the "repository.url" of package.json.
The download link is simply the one from npm website, to ensure the published npm package is used, not the github
version (they can differ sometimes).

@arikon
Copy link
Owner

arikon commented Feb 18, 2012

You could use npm show <package> to get the last version from npm registry

@kapouer
Copy link
Author

kapouer commented Feb 18, 2012

But you can't do that in debian/watch

@arikon
Copy link
Owner

arikon commented Feb 18, 2012

We also can't look for tags on github.com for every package: not all packages are hosted on github and not all repos are tagged.

@kapouer
Copy link
Author

kapouer commented Feb 18, 2012

That was only a suggestion, if you think it's not possible to produce some convenient working debian/watch, don't do it.
Maybe in general it's not possible, but maybe also 95% of packages could be supported ?

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

No branches or pull requests

2 participants