Mailinglist Archive: opensuse-buildservice (96 mails)

< Previous Next >
[opensuse-buildservice] Re: osc bco pkg creates incomplete working copy
Is that a bug in the API?

$ osc bco Base:System which
$ cd home:Andreas_Schwab:branches:Base:System/which
$ osc info
Project name: home:Andreas_Schwab:branches:Base:System
Package name: which
Path: /daten/src/osc/home:Andreas_Schwab:branches:Base:System/which
API URL: https://api.opensuse.org
Source URL:
https://api.opensuse.org/source/home:Andreas_Schwab:branches:Base:System/which
srcmd5: 2ec1b0c70088fb78e89214b8d2330298
Revision: 2ec1b0c70088fb78e89214b8d2330298
Link info: expanded link to project Base:System, package which, srcmd5
aec3cee9ff8919cd6306ec6a758926da, lsrcmd5 e99c7fe6edee596e9f6f12748bd42d19
$ osc api
'https://api.opensuse.org/source/home:Andreas_Schwab:branches:Base:System/which?rev=latest&expand=1'
<directory name="which" rev="2ec1b0c70088fb78e89214b8d2330298" vrev="10"
srcmd5="2ec1b0c70088fb78e89214b8d2330298">
<linkinfo project="Base:System" package="which"
srcmd5="aec3cee9ff8919cd6306ec6a758926da"
baserev="aec3cee9ff8919cd6306ec6a758926da"
lsrcmd5="e99c7fe6edee596e9f6f12748bd42d19" />
<serviceinfo code="succeeded" lsrcmd5="5609ec09bd1b2b1030c6e142153125dd" />
<entry name="which-2.21.tar.gz" md5="097ff1a324ae02e0a3b0369f07a7544a"
size="149305" mtime="1427047858" />
<entry name="which.changes" md5="3ccbcae38505c3ebbfb6007367e17601" size="735"
mtime="1441801950" />
<entry name="which.spec" md5="bb00612c40629cf79aa015bfdaaa8e10" size="1779"
mtime="1441801950" />
</directory>
$ osc up
At revision fffa23823e18d2328b4cf341650c4ddf.
$ osc info
Project name: home:Andreas_Schwab:branches:Base:System
Package name: which
Path: /daten/src/osc/home:Andreas_Schwab:branches:Base:System/which
API URL: https://api.opensuse.org
Source URL:
https://api.opensuse.org/source/home:Andreas_Schwab:branches:Base:System/which
srcmd5: fffa23823e18d2328b4cf341650c4ddf
Revision: fffa23823e18d2328b4cf341650c4ddf
Link info: expanded link to project Base:System, package which, srcmd5
aec3cee9ff8919cd6306ec6a758926da, lsrcmd5 5609ec09bd1b2b1030c6e142153125dd


The api call returns a different revision
(2ec1b0c70088fb78e89214b8d2330298) than what osc up established
(fffa23823e18d2328b4cf341650c4ddf). The former is what osc bco checked
out first. But note that lsrcmd5 in the updated working directory is
the same as the lsrcmd5 in the serviceinfo.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups