<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54908</bug_id>
          
          <creation_ts>2025-06-24 12:59:41 +0300</creation_ts>
          <short_desc>Не создается директория .gear/tags при вызове команды rpmgs -f версия</short_desc>
          <delta_ts>2026-11-10 04:10:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>etersoft-build-utils</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="minergenon">chal55rus</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>267715</commentid>
    <comment_count>0</comment_count>
    <who name="minergenon">chal55rus</who>
    <bug_when>2025-06-24 12:59:41 +0300</bug_when>
    <thetext>Не создается директория .gear/tags при вызове команды rpmgs -f версия
В скрипте rpmgs есть функция:
update_master_branch_to()
{
	local GSSETVERSION=&quot;$1&quot;
	if [ -z &quot;$GSSETVERSION&quot; ] ; then
		warning &quot;Empty new version variable&quot;
		return
	fi

	local tag=&quot;$(get_tag_by_version &quot;$GSSETVERSION&quot;)&quot;
	[ -n &quot;$tag&quot; ] || fatal &quot;Can&apos;t find tag for $GSSETVERSION version&quot;
	docmd git merge $tag

	# TODO: it is more clean detect that dir
	if [ -d &quot;$(get_root_git_dir)/.gear/tags&quot; ] ; then
		docmd gear-update-tag -a
		cd $(get_root_git_dir)/.gear || fatal
		docmd git add tags/* -f
		docmd git commit -m &quot;update .gear/tags&quot;
		cd - &gt;/dev/null
	fi
}
Правильно ли, что она проверяет существование директории?
Как может существовать директория когда ты собираешь пакет первый раз.
При отсутствии директории команда docmd gear-update-tag -a вроде как сама создает директорию, а если она есть то обновляет ее.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274632</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-10-15 20:01:07 +0300</bug_when>
    <thetext>Скорее всего, задумка в том, чтобы gear-update-tag применялся только при наличии .gear/tags, который указывает на определённую схему сборки. Возможно, есть или нужно ввести другой признак того, что пакет будет использовать схему сборки через tags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>304191</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-11-10 04:10:04 +0300</bug_when>
    <thetext>etersoft-build-utils-3.3.10-alt1 -&gt; sisyphus:

Sun Nov 08 2026 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 3.3.10-alt1
- rpmgs: resolve watch sources for explicit versions
- rpmgs: recognize archive URLs in VCS metadata
- download_url: retry without browser User-Agent if an archive URL is HTML
- gita: disapprove with the same arguments as approve
- rpmgs: no npm install for a package-lock.json in a subdir of a Go project
- download_url: retry without the browser User-Agent on download failure
  (SourceForge answers it with 403)
- rpmbs: -S uploads the src.rpm built from the gear repo
  instead of pushing the repo (packages maintained from src.rpm)
- hasher: separate directories for concurrent builds
  (HASHER_AUTO_SLOTS, -S SLOT)
- hasher: per-build temporary apt.conf and sources.list
- rpmgs: commit the stored upstream tags alone, stop on gear errors
- rpmgs: .gear/predownloaded-skip-npm skips pnpm and yarn install too
- gitask: merge NEW from TASK... puts all subtasks of tasks into one
  (src.rpm re-uploaded)
- gita acl: accept both &apos;PACKAGE show&apos; and &apos;show PACKAGE&apos; orders,
  branch name in any case
- gita add: pass NAME.git=TAG as &apos;repo NAME.git TAG&apos;
  (girar misreads a name starting with a digit)
- gita approve: skip empty (removed) subtask slots when listing all subtasks
- gita: share task_subtasks() helper for skipping empty subtask slots
- rpmbs: recreate a removed personal gitery repo before pushing
- loginhsh -c: clean up hasher without removing its directory
- recover the empty chroot scaffold left by an interrupted hsh-mkchroot
- myhsh: pass HASHER_NPROCS as hsh --nprocs
- rpmgs: store upstream tags on the first merge without .gear/tags
  (closes: #54908)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>