forked from pool/obs-service-format_spec_file
avoid double files
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=2
This commit is contained in:
parent
644c06f8c4
commit
94785c87ff
@ -21,6 +21,8 @@ done
|
||||
RETURN=0
|
||||
for i in *.spec; do
|
||||
/usr/lib/obs/service/format_spec_file.files/prepare_spec "$i" > "$MYOUTDIR/$i" || RETURN=1
|
||||
# remove all file files which are indendical to committed files
|
||||
cmp "$i" "$MYOUTDIR/$i" && rm "$MYOUTDIR/$i"
|
||||
done
|
||||
|
||||
exit $RETURN
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 25 15:34:28 UTC 2011 - adrian@suse.de
|
||||
|
||||
- do not generate new spec files when no changes happened
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 25 14:00:35 CEST 2011 - ro@suse.de
|
||||
|
||||
|
@ -1,22 +1,3 @@
|
||||
#
|
||||
# spec file for package obs-service-format_spec_file
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: obs-service-format_spec_file
|
||||
License: GPL v2 or later
|
||||
Group: Development/Tools/Building
|
||||
@ -55,4 +36,3 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/obs/service/format_spec_file.
|
||||
%defattr(-,root,root)
|
||||
%dir /usr/lib/obs
|
||||
/usr/lib/obs/service
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user