Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libalternatives for openSUSE:Factory 
checked in at 2025-04-11 16:45:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libalternatives (Old)
 and      /work/SRC/openSUSE:Factory/.libalternatives.new.1907 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libalternatives"

Fri Apr 11 16:45:44 2025 rev:7 rq:1268418 version:1.2+31.da24cd4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libalternatives/libalternatives.changes  
2023-04-27 19:59:07.189285461 +0200
+++ 
/work/SRC/openSUSE:Factory/.libalternatives.new.1907/libalternatives.changes    
    2025-04-11 16:46:24.650295483 +0200
@@ -1,0 +2,6 @@
+Fri Mar 28 16:54:45 UTC 2025 - dmuel...@suse.com
+
+- Update to version v1.2+31.da24cd4:
+  * utils: better handle case of unknown option
+
+-------------------------------------------------------------------

Old:
----
  libalternatives-v1.2+30.a5431e9.tar.zst

New:
----
  libalternatives-v1.2+31.da24cd4.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libalternatives.spec ++++++
--- /var/tmp/diff_new_pack.ZUARkl/_old  2025-04-11 16:46:25.166317176 +0200
+++ /var/tmp/diff_new_pack.ZUARkl/_new  2025-04-11 16:46:25.170317344 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libalternatives
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define sover 1
 
 Name:           libalternatives
-Version:        1.2+30.a5431e9
+Version:        1.2+31.da24cd4
 Release:        0
 Summary:        Helper for executing preferred application based on user 
preferences
 License:        Apache-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ZUARkl/_old  2025-04-11 16:46:25.194318353 +0200
+++ /var/tmp/diff_new_pack.ZUARkl/_new  2025-04-11 16:46:25.198318522 +0200
@@ -3,7 +3,7 @@
   <param name="scm">git</param>
   <param name="url">https://github.com/openSUSE/libalternatives.git</param>
   <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@.%h</param>
-  <param name="revision">a5431e9</param>
+  <param name="revision">da24cd4</param>
   <param name="changesgenerate">enable</param>
 </service>
   <service mode="manual" name="recompress">

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.ZUARkl/_old  2025-04-11 16:46:25.222319531 +0200
+++ /var/tmp/diff_new_pack.ZUARkl/_new  2025-04-11 16:46:25.226319699 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/openSUSE/libalternatives.git</param>
-              <param 
name="changesrevision">a5431e9a38d1cb89ed12a2e409713f9c5388713f</param></service></servicedata>
+              <param 
name="changesrevision">da24cd4ceee23d93ebfecbf1d527515e06ca6998</param></service></servicedata>
 (No newline at EOF)
 

++++++ libalternatives-v1.2+30.a5431e9.tar.zst -> 
libalternatives-v1.2+31.da24cd4.tar.zst ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libalternatives-v1.2+30.a5431e9/test/alternatives_tests.c 
new/libalternatives-v1.2+31.da24cd4/test/alternatives_tests.c
--- old/libalternatives-v1.2+30.a5431e9/test/alternatives_tests.c       
2023-04-06 16:19:29.000000000 +0200
+++ new/libalternatives-v1.2+31.da24cd4/test/alternatives_tests.c       
2023-10-10 14:11:24.000000000 +0200
@@ -132,6 +132,7 @@
 
        CU_ASSERT_EQUAL(WRAP_CALL(args), 0);
        CU_ASSERT_PTR_NOT_NULL(strstr(stdout_buffer, "this help screen"));
+       CU_ASSERT_EQUAL(strlen(stderr_buffer), 0);
 }
 
 void unknownParamsHelpScreen()
@@ -140,6 +141,7 @@
 
        CU_ASSERT_EQUAL(WRAP_CALL(args), -1);
        CU_ASSERT_PTR_NOT_NULL(strstr(stdout_buffer, "this help screen"));
+       CU_ASSERT_STRING_EQUAL(stderr_buffer, "Invalid option on 
command-line.\n");
 }
 
 void moreThanOneCommand()
@@ -148,6 +150,7 @@
 
        CU_ASSERT_EQUAL(WRAP_CALL(args), -1);
        CU_ASSERT_PTR_NOT_NULL(strstr(stdout_buffer, "this help screen"));
+       CU_ASSERT_STRING_EQUAL(stderr_buffer, "Invalid option on 
command-line.\n");
 }
 
 void listAllAvailablePrograms()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libalternatives-v1.2+30.a5431e9/utils/alternatives.c 
new/libalternatives-v1.2+31.da24cd4/utils/alternatives.c
--- old/libalternatives-v1.2+30.a5431e9/utils/alternatives.c    2023-04-06 
16:19:29.000000000 +0200
+++ new/libalternatives-v1.2+31.da24cd4/utils/alternatives.c    2023-10-10 
14:11:24.000000000 +0200
@@ -150,8 +150,10 @@
        optind = 1; // reset since we call this multiple times in unit tests
        while ((opt = getopt(argc, argv, ":hn:p:t:l::us")) != -1) {
                switch(opt) {
+                       case '?':
+                               fprintf(stderr, "Invalid option on 
command-line.\n");
+                               // fall-through
                        case 'h':
-                       case 'r':
                                setFirstCommandOrError(&command, opt);
                                break;
                        case 'u':

Reply via email to