[opensuse-buildservice] problem with osc checking out newly added package
Suppose I have a project that has been around for a long time. And suppose the project has 9 packages. Now suppose that one of the other maintainers of the project adds a new package. When I try to update my project to get the latest package, I get an error. I'm using osc 0.99-6.
osc up myproject Traceback (most recent call last): File "/usr/bin/osc", line 10, in ? sys.exit( osc.main() ) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib64/python2.4/site-packages/osc/commandline.py", line 930, in do_update args += prj.pacs_have TypeError: can only concatenate tuple (not "list") to tuple
Then, to try to work around the problem, I thought I would simply checkout the newest package of the project. This almost works.
osc co package10 A package10
Note that it creates the package10 directory, but the directory is empty. Then when I try to update the whole project again, osc doesn't know about the new package.
osc up Updating package1 U package1.spec At revision 5. Updating package2 At revision 1. Updating package3 At revision 42. Updating package4 At revision 50. Updating package5 A package5.spec At revision 4. Updating package6 At revision 3. Updating package7 At revision 5. Updating package8 At revision 2. Updating package9 At revision 38.
Notice that it doesn't seem to know anything about package10. And the package10 directory is empty, missing the tarball and specfile that I expect to be copied from the server. The webclient shows that files are there, but osc doesn't fetch them. If I completely remove my myproject directory, and re-checkout the whole project, there is no problem: osc correctly gives me the package10 directory and its correct contents. The problem only seems to happen when I try to update my existing project with this new package. Is this an osc bug? Is it a known issue? Can anyone offer any assistance? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-01-16 14:53:26 -0700, Craig Gardner wrote:
Suppose I have a project that has been around for a long time. And suppose the project has 9 packages.
Now suppose that one of the other maintainers of the project adds a new package. When I try to update my project to get the latest package, I get an error. I'm using osc 0.99-6.
osc up myproject Traceback (most recent call last): File "/usr/bin/osc", line 10, in ? sys.exit( osc.main() ) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib64/python2.4/site-packages/osc/commandline.py", line 930, in do_update args += prj.pacs_have TypeError: can only concatenate tuple (not "list") to tuple
There was a small bug in osc - I just fixed it in svn.
Then, to try to work around the problem, I thought I would simply checkout the newest package of the project. This almost works.
osc co package10 A package10
Note that it creates the package10 directory, but the directory is empty. Then when I try to update the whole project again, osc doesn't know about the new package.
Don't you get an exception if you run "osc co package10"? You should get a 404 because a "package10" project doesn't exist.
osc up Updating package1 U package1.spec At revision 5. Updating package2 At revision 1. Updating package3 At revision 42. Updating package4 At revision 50. Updating package5 A package5.spec At revision 4. Updating package6 At revision 3. Updating package7 At revision 5. Updating package8 At revision 2. Updating package9 At revision 38.
Notice that it doesn't seem to know anything about package10. And the package10 directory is empty, missing the tarball and specfile that I expect to be copied from the server. The webclient shows that files are there, but osc doesn't fetch them.
Hmm did you run "osc co package10" in your project dir? Otherwise I have no idea why there's a "package10" dir. Which files do you have in your "package10/.osc/" dir?
If I completely remove my myproject directory, and re-checkout the whole project, there is no problem: osc correctly gives me the package10 directory and its correct contents. The problem only seems to happen when I try to update my existing project with this new package.
Is this an osc bug? Is it a known issue? Can anyone offer any assistance?
Thanks.
Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Thu, 17 Jan 2008 22:07:22 +0100
schrieb Marcus Hüwe
Notice that it doesn't seem to know anything about package10. And the package10 directory is empty, missing the tarball and specfile that I expect to be copied from the server. The webclient shows that files are there, but osc doesn't fetch them.
Hmm did you run "osc co package10" in your project dir? Otherwise I have no idea why there's a "package10" dir. Which files do you have in your "package10/.osc/" dir?
osc will create the directory with nothing in it, if the project doesn't exist. I wondered last time as I had a typo in the project name. -- Oliver Bengs Key fingerprint = 8F45 91CA 4038 41D3 2FF7 8A65 D3A3 3358 A16E A024 http://jacklab.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-01-17 22:55:32 +0100, Oliver Bengs wrote:
Am Thu, 17 Jan 2008 22:07:22 +0100 schrieb Marcus Hüwe
: <snip>
Notice that it doesn't seem to know anything about package10. And the package10 directory is empty, missing the tarball and specfile that I expect to be copied from the server. The webclient shows that files are there, but osc doesn't fetch them.
Hmm did you run "osc co package10" in your project dir? Otherwise I have no idea why there's a "package10" dir. Which files do you have in your "package10/.osc/" dir?
osc will create the directory with nothing in it, if the project doesn't exist. I wondered last time as I had a typo in the project name.
Yep - it's fixed in svn now. Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Craig Gardner
-
Marcus Hüwe
-
Oliver Bengs