diff --git a/format_spec_file b/format_spec_file index da13fda..b97f59c 100644 --- a/format_spec_file +++ b/format_spec_file @@ -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 diff --git a/obs-service-format_spec_file.changes b/obs-service-format_spec_file.changes index 7d0c5c9..f4040cc 100644 --- a/obs-service-format_spec_file.changes +++ b/obs-service-format_spec_file.changes @@ -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 diff --git a/obs-service-format_spec_file.spec b/obs-service-format_spec_file.spec index 5fe92e6..93ac8c1 100644 --- a/obs-service-format_spec_file.spec +++ b/obs-service-format_spec_file.spec @@ -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