commit inst-source-utils for openSUSE:Factory
Hello community, here is the log from the commit of package inst-source-utils for openSUSE:Factory checked in at Mon Nov 2 16:07:16 CET 2009. -------- --- inst-source-utils/inst-source-utils.changes 2009-10-12 23:16:46.000000000 +0200 +++ /mounts/work_src_done/STABLE/inst-source-utils/inst-source-utils.changes 2009-11-02 13:49:40.000000000 +0100 @@ -1,0 +2,17 @@ +Mon Nov 2 13:41:07 CET 2009 - ro@suse.de + +- add rezip_repo_rsyncable +- update create_package_descr: + - skip deltarpms + - write comment with cmdline only once + - do not warn for missing pdb data +- update: create_repo_for_patch.sh + - add sources if wanted +- update: create_sha1sums + - clear LANG LANGUAGE +- update: createpatch + - major overhaul +- update: RPMQ.pm + - add PRETRANS,POSTTRANS, ..., FILEDIGESTALGO + +------------------------------------------------------------------- @@ -20,0 +38,6 @@ + +------------------------------------------------------------------- +Mon Jul 13 12:40:12 CEST 2009 - ug@suse.de + +- remove the "PATTERNS" line from the created add_on + (create_update_source) calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ inst-source-utils.spec ++++++ --- /var/tmp/diff_new_pack.q5tUbH/_old 2009-11-02 16:07:03.000000000 +0100 +++ /var/tmp/diff_new_pack.q5tUbH/_new 2009-11-02 16:07:03.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package inst-source-utils (Version 2009.10.13) +# spec file for package inst-source-utils (Version 2009.11.2) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,7 +19,7 @@ Name: inst-source-utils Summary: Utilities for creating customized installation sources -Version: 2009.10.13 +Version: 2009.11.2 Release: 1 Url: http://en.opensuse.org/Inst-source-utils License: GPL v2 or later ++++++ inst-source-utils.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/inst-source-utils/usr/bin/rezip_repo_rsyncable new/inst-source-utils/usr/bin/rezip_repo_rsyncable --- old/inst-source-utils/usr/bin/rezip_repo_rsyncable 1970-01-01 01:00:00.000000000 +0100 +++ new/inst-source-utils/usr/bin/rezip_repo_rsyncable 2009-11-02 16:06:59.000000000 +0100 @@ -0,0 +1,88 @@ +#!/usr/bin/perl + +use strict; +use File::stat; + + +sub GenerateRepomdXml { + my ($patches_directory) = @_; + opendir(PDIR,"$patches_directory"); + my @all_patches = grep {/\.xml(\.gz)?$/} readdir(PDIR); + closedir(PDIR); + open (NEWDIR,">$patches_directory/repomd.xml"); + print NEWDIR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; + print NEWDIR "<repomd xmlns=\"http://linux.duke.edu/metadata/repo\">\n"; + my $pdirname = $patches_directory; + $pdirname =~ s/^.*\///; + for (@all_patches) { + next if (/^patch-/); + next if (/^repomd/); + my ($checksum,$dummy) = split('\s+',`sha1sum "$patches_directory/$_"`); + my $o_checksum = $checksum; + if ( /\.gz/ ) { + ($o_checksum,my $dummy) = split('\s+',`gzip -dc "$patches_directory/$_" | sha1sum`); + } + my $timestamp = stat("$patches_directory/$_")->mtime; + my $filename = $_; + $_ =~ s/.xml(\.gz)?$//; + print NEWDIR " <data type=\"$_\">\n"; + print NEWDIR " <location href=\"$pdirname/$filename\"/>\n"; + print NEWDIR " <checksum type=\"sha\">$checksum</checksum>\n"; + print NEWDIR " <timestamp>$timestamp</timestamp>\n"; + print NEWDIR " <open-checksum type=\"sha\">$o_checksum</open-checksum>\n"; + print NEWDIR " </data>\n"; + } + print NEWDIR "</repomd>\n"; + close ( NEWDIR ); +} + +my $rsyncable = ""; + +my $arg = shift @ARGV; +my $tmpdir = `mktemp -d /tmp/mk_listings.XXXXXX`; +chomp ($tmpdir); +if ( $arg ) { + die("need an argument") unless ( -d $arg ); +} + +if ( $arg !~ /^\// ) { + my $pwd = `pwd`; + chomp ($pwd); + $arg = "$pwd/$arg"; +} + +system (`touch "$tmpdir/fff"`); +system (`gzip --rsyncable "$tmpdir/fff" >/dev/null 2>/dev/null`); +if ( -f "$tmpdir/fff.gz" ) { + $rsyncable = "--rsyncable"; +} +system (`rm -f "$tmpdir/fff" "$tmpdir/fff.gz"`); + +if ( $rsyncable ) { + my @GZIPPED = glob("$arg/*.gz"); + for (@GZIPPED) { + system (`gunzip -f $_`); + $_ =~ s/.gz$//; + system (`gzip -9 $rsyncable $_`); + } + my $has_sign = ""; + $has_sign = "1" if ( -f "$arg/repomd.xml.asc" ); + system (`cp -a "$arg/repomd.xml.key" "$tmpdir"`) if ( -f "$arg/repomd.xml.key" ); + if ( -f "$arg/repomd.xml" ) { + unlink "$arg/repomd.xml"; + GenerateRepomdXml($arg); + } + if ( $has_sign ) { + unlink "$arg/repomd.xml.asc"; + system (`sign -d "$arg/repomd.xml"`); + } + if ( -f "$tmpdir/repomd.xml.key" ) { + system (`cp -a "$tmpdir/repomd.xml.key" "$arg"`); + } + if ( -f "$arg/MD5SUMS" ) { + system (`create_md5sums $arg`); + } +} + +system("rm -rf $tmpdir"); + ++++++ pre_checkin.sh ++++++ --- /var/tmp/diff_new_pack.q5tUbH/_old 2009-11-02 16:07:03.000000000 +0100 +++ /var/tmp/diff_new_pack.q5tUbH/_new 2009-11-02 16:07:03.000000000 +0100 @@ -13,7 +13,8 @@ /work/cd/bin/tools/create_sha1sum /work/cd/bin/tools/compress_susetags /work/cd/bin/tools/packages2eula.pl /work/cd/lib/mach_cd/mk_changelog /work/cd/bin/tools/create_repo_for_patch.sh /work/cd/bin/createpatch - /work/cd/bin/tools/create_update_source.sh" + /work/cd/bin/tools/create_update_source.sh + /work/cd/bin/tools/rezip_repo_rsyncable" mkdir -p $TOPDIR$BINDIR mkdir -p $TOPDIR$MODULEDIR/modules ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de