Bug 1012284 - javapackages-tools: %add_maven_depmap fails with -v
javapackages-tools: %add_maven_depmap fails with -v
Product: Fedora
Classification: Fedora
Component: javapackages-tools (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Mikolaj Izdebski
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-09-26 04:02 EDT by Mikolaj Izdebski
Modified: 2013-10-02 11:56 EDT (History)
4 users (show)

See Also:
Fixed In Version: 3.3.1-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-10-02 11:56:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Reproducer (9.47 KB, application/x-rpm)
2013-09-26 04:02 EDT, Mikolaj Izdebski
no flags Details

  None (edit)
Description Mikolaj Izdebski 2013-09-26 04:02:54 EDT
Created attachment 803264 [details]

Description of problem:
%add_maven_depmap fails if option -v is specified

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. rebuild attached SRPM

Actual results:
+ python -m /usr/share/java-utils/maven_depmap -r 4.5.6 -p /usr -n '' /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/maven-fragments/maven-downloader /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/maven-poms/JPP-foo.pom /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy
+ [[ -n -v 4.5.6 ]]
+ mv /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/maven-poms/JPP-foo.pom /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/maven-poms/JPP-foo-1.1.pom
+ '[' -f /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy ']'
+ mv /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy /builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy
mv:  '/builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy' and '/builddir/build/BUILDROOT/maven-downloader-1.1-5.fc21.x86_64/usr/share/java/foo.xy' are the same file 

Expected results:
Macro succeeds.
Comment 1 Mikolaj Izdebski 2013-10-02 11:50:04 EDT
Fixed in javapackages-tools-3.3.1-1
Comment 2 Mikolaj Izdebski 2013-10-02 11:51:15 EDT
Verified by rebuilding reproducer SRPM.
Test case added upstream in 8c8e870.
Comment 3 Mikolaj Izdebski 2013-10-02 11:56:12 EDT
I believe that this bug is fixed in javapackages-tools-3.3.1-1,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:

Note You need to log in before you can comment on or make changes to this bug.