Changeset 1130 for obs


Ignore:
Timestamp:
Dec 21, 2012, 2:34:56 PM (12 years ago)
Author:
joergs
Message:

fixes

Location:
obs/obs-service-dsc_filelist/usr/lib/obs/service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist

    r1129 r1130  
    55#
    66# (C) 2012 by <joerg.steffens@dass-it.de>
    7 # 
     7#
    88# This program is free software; you can redistribute it and/or 
    99# modify it under the terms of the GNU General Public License 
     
    4242
    4343
    44 
    45 get_version_from_file () {
    46   if [ -z "$MYVERSION" ]; then
    47     MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tar.*,\1,p" | head -n 1`
    48   fi
    49   if [ -z "$MYVERSION" ]; then
    50     MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tgz$,\1,p" | head -n 1`
    51   fi
    52   if [ -z "$MYVERSION" ]; then
    53     MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tbz2$,\1,p" | head -n 1`
    54   fi
    55   if [ -z "$MYVERSION" ]; then
    56     MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).zip$,\1,p" | head -n 1`
    57   fi
    58   if [ -z "$MYVERSION" ]; then
    59     echo "ERROR: no version is given and can't get detected automatically"
    60     exit 1
    61   fi
    62   echo "Detected version as $MYVERSION"
    63 }
    64 
    6544write_files () {
    6645  if [ -z "$FILES" ]; then
     
    9069  done
    9170}
    92 
    93 #get_version_from_file
    94 #write_files
    9571
    9672filesize()
  • obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist.service

    r1128 r1130  
    1 <service name="set_file_info">
     1<service name="dsc_filelist">
    22  <summary>DSC file: updates source files info in DSC file</summary>
    33  <description>This service updates the files info in a DSC file according to the existing files.
Note: See TracChangeset for help on using the changeset viewer.