Bug ID 1197512
Summary Failed to remove file on linked package from linked projects
Classification openSUSE
Product openSUSE.org
Version unspecified
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component BuildService
Assignee screening-team-bugs@suse.de
Reporter ralf.habacker@freenet.de
QA Contact adrian.schroeter@suse.com
Found By ---
Blocker ---

Created attachment 857358 [details]
Screenshot 1

I have linked the project windows:mingw:win32 with
home:rhabacker:linkedprojecttest 

The project meta data is as: 

<project name="home:rhabacker:linkedprojecttest">
  <title>Testproject to show issues with linked projects</title>.
  <description/>
  <link project="windows:mingw:win32"/>
  <person userid="rhabacker" role="maintainer"/>
  <build>
    <disable/>
  </build>
  <publish>
    <disable/>
  </publish>
  <repository name="openSUSE_Leap_15.3" linkedbuild="all">
    <path project="windows:mingw:win32" repository="openSUSE_Leap_15.3"/>
    <path project="windows:mingw" repository="openSUSE_Leap_15.3"/>
    <arch>x86_64</arch>
  </repository>
</project>

I checked out the package mingw32-expat with osc, updated the package to a
newer version by replacing the tarball and ran osc ci. osc asked me if I wanted
to create a local branch, which I confirmed.

Some of the packages are links to another project!
Create a local branch before committing? (y|N) y
Branching mingw32-expat from windows:mingw:win32 to
home:rhabacker:linkedprojecttest
Delete expat-2.2.4.tar.bz2
Deleting mingw32-expat-2.2.4-rpmlintrc
Sending mingw32-expat.changes
Shipping mingw32-expat.spec
Shipping expat-2.4.7.tar.xz
Sending mingw32-expat-rpmlintrc
File data transfer ....
Transmitted revision 2.

In the project view, the package was moved from the "inherited packages" list
to the "packages" list (see attached screenshot).

The problem is that this project is not linked to the original package,
although it was branched. 

After I added a link afterwards with  

osc linkpac windows:mingw:win32 mingw32-expat home:rhabacker:linkedprojecttest
mingw32-expat

the old tarball is still included and cannot be deleted (see screenshot 2).

Even clicking on the diff link does not show that the original tarball has been
removed.

The link points to the latest file

<link project="windows:mingw:win32" package="mingw32-expat">
<patches>
  <!-- <branch /> for a full copy, default case -->
  <!-- <apply name="patch" /> apply a patch on the source directory -->
  <!-- <topadd>%define build_with_feature_x 1</topadd> add a line on the top
(spec file only) -->
  <!-- <add name="file.patch" /> add a patch to be applied after %setup (spec
file only) -->
  <!-- <delete name="filename" /> delete a file -->
</patches>
</link>


You are receiving this mail because: