(also this is answered explicitly in uscan(1))I assume I have not yet understood the purpose of the changelog inIt needs debian/changelog to know the current upstream version of the package.
context of uscan. What do I miss?
The Wiki page <https://wiki.debian.org/debian/watch> is not up-2-dateWhat's wrong with it?
I assume I have not yet understood the purpose of the changelog in
context of uscan. What do I miss?
This is "debian/watch":
version=4
# RegEx in Perl dialect https://codeberg.org/buhtz/hyperorg/archive/v(\d+).(\d+).(\d+).tar.gz
This is a dummy "debian/changelog":
hyperorg (0.0-dev) UNRELEASED; urgency=low
* Changes made in this version
-- Maintainer Name <maintainer@example.com> Thu, 01 Jul 2021 12:00:00
+0000
$ cat debian/watch
version=4
opts="mode=git, \
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/, \
dversionmangle=s/\+ds(\.?\d+)?$//" \ https://codeberg.org/buhtz/hyperorg.git \
refs/tags/v(\d+\S+)
$ uscan --verbose --no-download
uscan info: uscan (version 2.23.7) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="hyperorg" version="0.0-dev" (as seen in debian/changelog)
uscan info: package="hyperorg" version="0.0" (no epoch/revision)
uscan info: ./debian/changelog sets package="hyperorg" version="0.0"
uscan info: Process watch file at: debian/watch
package = hyperorg
version = 0.0
pkg_dir = .
uscan info: opts: mode=git, uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/, dversionmangle=s/\+ds(\.?\d+)?$//
uscan info: line: https://codeberg.org/buhtz/hyperorg.git refs/tags/v(\d+\S+) uscan info: Parsing mode=git
uscan info: Parsing uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/
uscan info: Parsing dversionmangle=s/\+ds(\.?\d+)?$//
uscan info: line: https://codeberg.org/buhtz/hyperorg.git refs/tags/v(\d+\S+) uscan info: Last orig.tar.* tarball version (from debian/changelog): 0.0 uscan info: Last orig.tar.* tarball version (dversionmangled): 0.0
uscan info: Execute: git ls-remote https://codeberg.org/buhtz/hyperorg.git uscan info: Found the following matching refs:
refs/tags/v0.1.0 (0.1.0)
HEAD ()
refs/heads/fix/131subfolders ()
refs/heads/fix/30_and_70_links ()
refs/heads/latest ()
refs/pull/138/head ()
refs/pull/139/head ()
uscan info: Looking at $base = https://codeberg.org/buhtz/hyperorg.git with
$filepattern = refs/tags/v(\d+\S+) found
$newfile = refs/tags/v0.1.0
$newversion = 0.1.0
$lastversion = 0.0
uscan info: Upstream URL(+tag) to download is identified as https://codeberg.org/buhtz/hyperorg.git refs/tags/v0.1.0
uscan info: Filename (filenamemangled) for downloaded file: hyperorg-0.1.0.tar.xz
Newest version of hyperorg on remote site is 0.1.0, local version is 0.0
Newer package available from:=> https://codeberg.org/buhtz/hyperorg.git refs/tags/v0.1.0
uscan info: Scan finished
On Fri, Mar 29, 2024 at 02:05:41PM +0000, c.buhtz@posteo.jp wrote:
The Wiki page <https://wiki.debian.org/debian/watch> is notWhat's wrong with it?
up-2-date
You need to use "opts=mode=git, ...", see the man page of uscan.
opts="mode=git, \
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/,
\ dversionmangle=s/\+ds(\.?\d+)?$//" \ https://codeberg.org/buhtz/hyperorg.git \
refs/tags/v(\d+\S+)
And uscan will find the most recent version matching the regexp.
Dear Carsten,
thank for your reply and your patience with me. :)
On 2024-03-29 16:23 Carsten Schoenert <c.schoenert@t-online.de> wrote:
You need to use "opts=mode=git, ...", see the man page of uscan.
Are you sure.
For example this watch file do not use "opts=" https://sources.debian.org/src/backintime/1.4.3-1/debian/watch/
Also some examples on the wikipage about "debian/watch" do not use
"opts=".
Please be aware that I don't only want to solve one technical problem
with one specific package. I want to understand the whole thing ("big picture") to improve the documentation.
opts="mode=git, \
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/,
\ dversionmangle=s/\+ds(\.?\d+)?$//" \
https://codeberg.org/buhtz/hyperorg.git \
refs/tags/v(\d+\S+)
And uscan will find the most recent version matching the regexp.
I see 3 different regex patterns in this line. Why?
Am 29.03.24 um 17:39 schrieb c.buhtz@posteo.jp:
On 2024-03-29 16:23 Carsten Schoenert <c.schoenert@t-online.de>
wrote:
You need to use "opts=mode=git, ...", see the man page of uscan.
Are you sure.
Of course I'm sure, I've tested the snippets before posting it on the
list. Did you test this on your side and have any issues?
For example this watch file do not use "opts=" https://sources.debian.org/src/backintime/1.4.3-1/debian/watch/
You need to ask the person that did probably this creation or
modification. I can't answering this.
On 2024-03-29 16:23 Carsten Schoenert <c.schoenert@t-online.de> wrote:
You need to use "opts=mode=git, ...", see the man page of uscan.
Are you sure. For example this watch file do not use "opts=" https://sources.debian.org/src/backintime/1.4.3-1/debian/watch/
And uscan will find the most recent version matching the regexp.
I see 3 different regex patterns in this line. Why?
There is no "opts=". So again. Why would you suggest to use "opts="? I wantto
learn. I don't want to fight.
One of the interesting things about uscan
On 2024-03-29 11:29 Soren Stoutner <soren@debian.org> wrote:
One of the interesting things about uscan
This is that kind of "big picture" explanations that should be written
to the Wiki. Texts like this are the missing link between man pages, references and policy documents.
Thanks in advance
Much of Debian’s documentation is not written for people
who are new to the topic, but for people who already know the
information and just want to be reminded about some of the tricky
parts.
Anything you can do to improve the documentation would be greatly appreciated.
Otherwise just delete the whole wiki. That would be an increase in
the quality of Debians documentation. In its current state it is
embarrassing and it harms the project called Debian.
Don't write and explain such things in emails. Save your time and
resources. Write it into the wiki just one time and then you can link
to it. You wrote it. I won't copy and paste your stuff. Ladies and
Gentlemen please do edit your own wiki pages yourself. You are the
experts here. I am not.
This attitude is also one of the reasons why the wiki is in such a bad
shape.
Otherwise just delete the whole wiki. That would be an increase in
the quality of Debians documentation. In its current state it is
embarrassing and it harms the project called Debian.
Debian is not a hobby. Doing FOSS shouldn't be an excuse for not taking responsibility.
I tried. But it seems I am the only person caring for new contributors
and how the read documentation. I am tortured with man pages and links
to out dated documentation (e.g. "New maintainers guide").
The situation is not healthy to me. So I need to stop from here with
fixing other peoples documentation.
then the developers claim that they didn't have time to document
Did you find my previous message about
uscan helpful?
The situation is not healthy to me. So I need to stop from here with
fixing other peoples documentation.
I think that you can make a difference, so don't stop trying to do
something about it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (3 / 13) |
Uptime: | 106:59:59 |
Calls: | 7,612 |
Calls today: | 3 |
Files: | 12,786 |
Messages: | 5,682,995 |
Posted today: | 2 |